[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/26166] Matcher.find mis-behaviour
From: |
mark at gcc dot gnu dot org |
Subject: |
[Bug classpath/26166] Matcher.find mis-behaviour |
Date: |
7 Feb 2006 22:26:55 -0000 |
------- Comment #3 from mark at gcc dot gnu dot org 2006-02-07 22:26 -------
This might be because we are not handling character class union
[<class>[<another-class>]] correctly. In this case it seems the regular
expression can be rewritten with logical or as follows:
Pattern pattern=
Pattern.compile("(\\p{L}|\\p{Mn}|\\p{Pc}|\\p{Nd}|\\p{Nl}|\\p{Sc})+",
patternFlags);
In that case the test program does return true.
The above is just a fancy way of saying you want to match a string of one or
more Letters, Modifier symbols, Connector punctuation, Decimal digit numbers,
Letter numbers and Currency symbols.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26166
- [Bug classpath/26166] New: Matcher.find mis-behaviour, overholt at redhat dot com, 2006/02/07
- [Bug classpath/26166] Matcher.find mis-behaviour, overholt at redhat dot com, 2006/02/07
- [Bug classpath/26166] Matcher.find mis-behaviour, mark at gcc dot gnu dot org, 2006/02/07
- [Bug classpath/26166] Matcher.find mis-behaviour,
mark at gcc dot gnu dot org <=
- [Bug classpath/26166] Matcher.find mis-behaviour, kaz at maczuka dot gcd dot org, 2006/02/07
- [Bug classpath/26166] Matcher.find mis-behaviour, kaz at maczuka dot gcd dot org, 2006/02/08
- [Bug classpath/26166] Matcher.find mis-behaviour, cvs-commit at developer dot classpath dot org, 2006/02/13
- [Bug classpath/26166] Matcher.find mis-behaviour, kaz at maczuka dot gcd dot org, 2006/02/13
- [Bug classpath/26166] Matcher.find mis-behaviour, mark at gcc dot gnu dot org, 2006/02/13
- [Bug classpath/26166] Matcher.find mis-behaviour, tromey at gcc dot gnu dot org, 2006/02/13