[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] RFC: gnu.regexp fix to allow "([(])"
From: |
Mark Wielaard |
Subject: |
Re: [cp-patches] RFC: gnu.regexp fix to allow "([(])" |
Date: |
Thu, 19 Jan 2006 01:31:49 +0100 |
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