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: no-break space woe

800351Feb 14 2008 — edited Feb 14 2008
Yesterday I had a suffering around space characters that could not match regex
\s
. It turned out to be unicode no-break space 00A0, c2a0 in UTF-8.

What could be a proper regex pattern that could match all kind of spaces including 0020, 00A0 and other rare species of spaces?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 13 2008
Added on Feb 14 2008
1 comment
1,625 views