aspose file tools*
The moose likes Beginning Java and the fly likes replacing a regex wild card Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "replacing a regex wild card" Watch "replacing a regex wild card" New topic
Author

replacing a regex wild card

Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
Any way (in java 4) to replace '?' with a String?


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Does this work?

s.replaceAll("\\?", "abc");


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
I thought I tried that, but I'll let you know ...
Ls chin
Ranch Hand

Joined: Jun 28, 2008
Posts: 99
Originally posted by Marilyn de Queiroz:
I thought I tried that, but I'll let you know ...


So... did it work?

Just wondering...



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: replacing a regex wild card
 
Similar Threads
Singleton in SWING
connection problem
Heavy use of HTTPSession
character representation of a blank space
WA #1.....word association