User account creation filtered due to spam.

Bug 22884

Summary: java.util.regex.Pattern doesn't understand (?s)
Product: classpath Reporter: from-classpath
Component: classpathAssignee: Not yet assigned to anyone <unassigned>
Severity: normal CC: andrew, bug-classpath
Priority: P3    
Version: unspecified   
Target Milestone: 0.90   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed:

Description from-classpath 2005-02-23 14:26:24 UTC

 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

Comment 1 from-classpath 2005-02-23 14:28:26 UTC
(?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
Comment 2 2006-01-16 15:40:17 UTC
Subject: Bug 22884

CVSROOT:	/cvsroot/classpath
Module name:	classpath
Changes by:	Ito Kazumitsu <>	06/01/16 13:38:25

Modified files:
	.              : ChangeLog 
	gnu/regexp     : 

Log message:
	2006-01-16  Ito Kazumitsu  <>
	Fixes bug #22884
	* gnu/regexp/ Parse embedded flags.
	* gnu/regexp/ New syntax bit.


Comment 3 Ito Kazumitsu 2006-01-16 22:04:26 UTC
Comment 4 Ito Kazumitsu 2006-01-16 22:19:21 UTC
*** Bug 22943 has been marked as a duplicate of this bug. ***
Comment 5 Ito Kazumitsu 2006-02-02 17:02:15 UTC
*** Bug 26075 has been marked as a duplicate of this bug. ***