hi, I have a regular expression that uses one of the inline switches documented in the Sun javadoc implementation of java.util.regex.Pattern and when running under classpath I get the following error: At position 1 in regular expression pattern: quantifier (?*+{}) without preceding token (?s)<!--(.)+?-->
(?s) is the DOTALL switch, which makes the wildcard . character match any character including newlines rather than going through the class API, you can embedd the string (?s) in your pattern and DOTALL mode will be activated
Subject: Bug 22884 CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Ito Kazumitsu <itokaz@savannah.gnu.org> 06/01/16 13:38:25 Modified files: . : ChangeLog gnu/regexp : RE.java RESyntax.java Log message: 2006-01-16 Ito Kazumitsu <kaz@maczuka.gcd.org> Fixes bug #22884 * gnu/regexp/RE.java(initialize): Parse embedded flags. * gnu/regexp/RESyntax.java(RE_EMBEDDED_FLAGS): New syntax bit. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6082&tr2=1.6083&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/regexp/RE.java.diff?tr1=1.9&tr2=1.10&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/regexp/RESyntax.java.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
Fixed.
*** Bug 22943 has been marked as a duplicate of this bug. ***
*** Bug 26075 has been marked as a duplicate of this bug. ***