Not sure why it got so lovely packed :/

Jacques

From: "Jacques Le Roux" <[email protected]>
Did you find it?
s.replaceAll("\\s+","");Always think regex in such cases: more powerfulJacques
From: "Jacques Le Roux" <[email protected]>
Did you try to Google for "java replace all spaces"?

Jacques

From: "rohit" <[email protected]>
hi i am trying to remove whitespace from string, but have been unable to do
so in cases where there are 3 consecutive whitespaces. for eg.

String X = X.replaceAll(" ", "-");

replaces only a maximum of 2 consecutive whitespace and not 3. i tried
running the relaceAll, once again on the already modified string, but it did
not help.

any ideas will be helpful.

Thanks

Rohit

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/removing-whitespace-from-String-tp2537234p2537234.html
Sent from the OFBiz - User mailing list archive at Nabble.com.




Reply via email to