I don't have much experience using regexes on Unicode strings (and that only in the distant past), so this is a stab in the dark, but might some of the slowdown be due to the regex processing changes made to accommodate Unicode? Perl version 5.8 was more or less in the midst of those changes IIRC.
If you're not, in fact, dealing with Unicode text, maybe check out the discussion in Character set modifiers (and other places) WRT the /a and /aa "ASCII-safe" modifiers.
Give a man a fish: <%-{-{-{-<
In reply to Re: regex gotcha moving from 5.8.8 to 5.30.0?
by AnomalousMonk
in thread regex gotcha moving from 5.8.8 to 5.30.0?
by mordibity
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |