Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

replaceAll plus symbol

807591Mar 19 2008 — edited Mar 19 2008
Hi-

I have a Text Area and I need to remove all occurences of the String " +" <-- so thats a space + plus
It does not remove the + but it does remove the space.
Using just replace() to get rid of the character + works but it won't allow me to replace the plus symbol with an empty character since such a thing does not exist like it does for an empty string.

It is important to the program to remove the string literal " +" and not just "+"
What to do? Thanks-
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 16 2008
Added on Mar 19 2008
11 comments
4,034 views