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!

Regex. Remove a Whitespace Line

807591Apr 14 2008 — edited Apr 14 2008
Hello,

well i try to remove a Whilespace Line using
String#replaceAll(..,..);

Actually i think this should work: ^[\\s*]$
But it dosent. I Tested a bit using Notepad++ an there it works well.

Anyone can tell me whats wrong ?

regards,
Jens
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 12 2008
Added on Apr 14 2008
18 comments
521 views