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!

how to remove whitespace from acronyms using regexes

807580Sep 25 2009 — edited Sep 25 2009
I have text say "hallo a s d java world". Now asd is a acronym with whitespace. It could have been "a. s. d." as well. When there is space between these individual alphabets of an acronym, it creates lots of trouble in my application. Acronyms can be of minimum two alphabets, but upper limit is not defined. Now I want output as "hallo asd java world". What will be the regex for it and what will be the capturing group ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2009
Added on Sep 25 2009
1 comment
154 views