Hi everyone,
I would like to ask something about regular expressions in java.
I have made a code lika that
Can I do it this with only one regular expression, because it seems very bad code.
I know that the first parameter could be
replaceAll("[;:,`!]", ) but the second parameter?
I would like the same for the expression
Thanks a lot
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("`", " ` ");
cleanString = cleanString.replaceAll("!", " ! ");
I know that the first parameter could be
replaceAll("[;:,`!]", ) but the second parameter?
I would like the same for the expression
Code:
cleanString = cleanString.replaceAll("That's", " That is ");
cleanString = cleanString.replaceAll("that's", " that is ");
Comment