Re: [Haskell-cafe] strange behavior in Text.Regex.Posix

2007-01-23 Thread Chris Kuklewicz
John MacFarlane wrote: > Can anyone help me understand this odd behavior in Text.Regex.Posix (GHC 6.6)? > > Prelude Text.Regex.Posix Text.Regex> subRegex (mkRegex "\\^") "he\350llo" "@" > "[EMAIL PROTECTED]" > > Why does /\^/ match \350 here? Generally Text.Regex.Posix seems to work > fine with

[Haskell-cafe] strange behavior in Text.Regex.Posix

2007-01-22 Thread John MacFarlane
Can anyone help me understand this odd behavior in Text.Regex.Posix (GHC 6.6)? Prelude Text.Regex.Posix Text.Regex> subRegex (mkRegex "\\^") "he\350llo" "@" "[EMAIL PROTECTED]" Why does /\^/ match \350 here? Generally Text.Regex.Posix seems to work fine with unicode characters. For example, \35