Output correct grammar
I have a string like this:
"this is a cool string . and another cool segment of the same string . "
As you can see the periods have an extra space I need to change that too:
"this is a cool string. and another cool segment of the same string."
String=String.replaceAll(" . ", ". ");
But that doesn't work it also replaces all the a's in the string, not sure why, I think it has something to do with the Hex values or something like that or I need to use Regular Expressions.
Any help would be appreciated.
why not reply to your other post first before starting a new one? http://www.java-forums.org/new-java/...html#post59786
oh sorry didn't notice the updates on the other thread, my bad. your other post worked, you are a regular expression genius!