Hi Ito, On Thu, 2006-01-19 at 01:12 +0900, Ito Kazumitsu wrote: > Well, perl accepts "[[]" and "[^[]" as valid regular expressions. > But Sun's JDK does not. > > java.util.regex.PatternSyntaxException: Unclosed character class near index 4 > ([[]) > ^ > Sun's JDK accepts such expressions as "[abc[xyz]]" and "[a-z&&[^p-r]]", > and as a result of supporting such nested character classes, traditional > expression "[[]" and "[^]]" are no longer supported, I guess.
Aha! Thanks for your explanation. That makes sense. I wrote these mauve tests testing against perl. So that explains it. We should document this and remove these particular tests from mauve. Cheers, Mark
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Classpath-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath-patches
