I run it on WinXP with ActiveState Perl v5.10.0. (build 1004).
Localizing helped solving my problem, but I removed non-greed and tried to use (?>...)* but I must admit I don't fully understand documentation of this construct yet. Did you think about something like this?
local $parens = qr{(?:(?>[^{}]*)|\{(??{$parens})\})*}x;
In reply to Re^2: balanced parens regexp hangs
by grizzley
in thread balanced parens regexp hangs - solved
by grizzley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |