DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30126>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30126

Error on negating certain predefined character classes (\W\S\D)

           Summary: Error on negating certain predefined character classes
                    (\W\S\D)
           Product: Regexp
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


This occured with jakarta-regexp-1.3 (final) on WinXP using j2sdk 1.4.2.

Trying to compile regular expressions using the negated character classes \W,
\S\ or \D causes, on execution:

org.apache.regexp.RESyntaxException: Syntax error: Bad character class

Even the simplest possible example fails:
RE re = new RE("[^\\W]");

It works though with \w, \s or \d.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to