Re: RegExp with umlauts and punctuation independent of locale

"Daniel F. Savarese" <[email protected]> Wed, 22 Oct 2003 12:29:53 -0400
Newsgroups gmane.comp.jakarta.oro.user
Message-ID <[email protected]>
In message <[email protected]>, Timo Neumann writes:
>What I have now is this:
>^[\d\wäöüÄÖÜ\s]*$
>
>Obviously that does not allow punctuation.
>
>Any help?

From the perlre man page: 

       graph
           Any alphanumeric or punctuation (special) character.

       print
           Any alphanumeric or punctuation (special) character or the space
           character.

       punct
           Any punctuation (special) character.

That is, as in [:graph:], [:print:], and [:punct:].  For example,
[\s\w[:punct:]] should be equivalent to [\s[:graph:]] which should
be equivalent to [:print:].  We need to update the documentation
for the supported syntax because I see POSIX and POSIX-like character
classes are not listed at
http://jakarta.apache.org/oro/api/org/apache/oro/text/regex/package-summary.html

daniel