I found it, is
cleanString = cleanString.rep laceAll("[\\)\\(\\[\\]]", " $0 ");
But I didn't understand how can I replace strings that I don't care if the characters are little or big.
I mean That's,that's,T hAT's to be all the same.
replaceAll("... ",)????...
User Profile
Collapse
-
Thank you very much!
I would like also to ask what about brackets
How can I reaplace with something else . . ?Leave a comment:
-
Regular expression question!
Hi everyone,
I would like to ask something about regular expressions in java.
I have made a code lika that
...Code:cleanString = cleanString.replaceAll(";", " ; "); cleanString = cleanString.replaceAll(":", " : "); cleanString = cleanString.replaceAll(",", " , "); cleanString = cleanString.replaceAll("`", " ` ");
No activity results to display
Show More
Leave a comment: