Announcement Announcement Module
Collapse
No announcement yet.
[spring Faces] Problem with a regular expression Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • [spring Faces] Problem with a regular expression

    Hi all,

    I want to build a regular expression for validating a simple name,
    a name can be composed by : A-Z, a-z and other caracters like : , , , , , ', - and space

    but the regular expression doesn't supporte the extended ASCII caracters
    How can I resolve it ?

    thank you

  • #2
    Hi, according to this site, Java does not support non ASCII word characters using \w. If you have only a few, you might want to write it out using [a-zA-Z....] but I'm sure you don't want to do that for all Unicode characters...

    Just now I found this feature:

    \p{IsL}+

    Does that work for you? I did a test, and it seems to work with me.
    Last edited by Jeroen Kransen; Mar 17th, 2009, 08:39 AM.

    Comment

    Working...
    X