You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-dev@jakarta.apache.org by bu...@apache.org on 2004/07/15 17:42:08 UTC
DO NOT REPLY [Bug 30126] New: -
Error on negating certain predefined character classes (\W\S\D)
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: regexp-dev@jakarta.apache.org
ReportedBy: klauslechner@web.de
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: regexp-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-dev-help@jakarta.apache.org