[email protected]
[Top] [All Lists]

Re: [Haskell-cafe] Re: ghc 6.12.1 and regex

Subject: Re: [Haskell-cafe] Re: ghc 6.12.1 and regex
From: Paulo Tanimoto
Date: Tue, 29 Dec 2009 12:36:32 -0600
On Tue, Dec 29, 2009 at 12:26 PM, David Fox <[email protected]> wrote:
>>> "xyz" =~ "^[^-]*$" :: Bool
>> *** Exception: Explict error in module Text.Regex.TDFA.String :
>> Text.Regex.TDFA.String died: parseRegex for Text.Regex.TDFA.String
>> failed:"^[^-]*$" (line 1, column 5):
>> unexpected "]"
>> expecting Failed to parse bracketed string
>>
>
> Hmm this seems to work: "^[^--]$"

Strange.  In that case, Regex.Posix seems to work correctly.  How
about using the bindings to PCRE instead?

Chris also put a lot of information on his packages here:

http://www.haskell.org/haskellwiki/Regex_Posix

Paulo
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>