in reply to Memory leak in unicode substitution
"x" =~ / [\x{1234}] /x for 0 .. 100_000; "x" =~ /(?: \x{1234} | \x{1234} )/x for 0 .. 100_000; "\x{4321}" =~ / \x{1234} /x for 0 .. 100_000;
Curious, the bug doesn't bite if character is put in a class or dummy alternation. Most important, there's no bug if target string is utf8 itself. That's why, I think, it wasn't found sooner. Unicode in regexes most often means Unicode in texts.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Memory leak in unicode substitution
by holli (Abbot) on Aug 30, 2019 at 17:06 UTC | |
by choroba (Cardinal) on Aug 30, 2019 at 17:12 UTC |