in reply to Perl6 Regex extremely slow
Your regexes are not identical:
First, the P6 version reads <-[\\]> . where your P5 version reads [\\]. without negation.
Second, in P6 `|` is subject to longest-token matching, whereas you need to use `||` to match alternatives sequentially.
|
|---|