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 for international character sets like [a-zA-Z] + �, Ł, �, etc.

807606Jun 5 2007 — edited Jun 5 2007
Hi all!

Is there an internationalized equivalent for the pattern "[a-zA-Z]+" which would accept the French, German, Polish or other local characters like "Ł" or "�" or "�"?
It's a bad idea to add all of them to the standard regex like "[a-zA-Z�����]+", since you never know what comes next.
I tried to use the "\\p{Alpha}+" to check the string "Łukasz", but the string didn't match. Is there any other possibility other than to exclude "=", ">", "+", "�", etc.?

Thanks for any help!
Lena
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2007
Added on Jun 5 2007
10 comments
2,491 views