[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/22884] java.util.regex.Pattern doesn't understand (?s)
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug classpath/22884] java.util.regex.Pattern doesn't understand (?s) |
Date: |
16 Oct 2005 01:27:34 -0000 |
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)<!--(.)+?-->
------- Comment #1 from from-classpath at savannah dot gnu dot org 2005-02-23
14:28 -------
(?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
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22884
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/22884] java.util.regex.Pattern doesn't understand (?s),
gcc-bugzilla at gcc dot gnu dot org <=