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
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