bug-classpath
[Top][All Lists]
Advanced

[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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]