It fails, of course, because it would require variable-length lookbehind.my $escape; $escape = qr/(?<!(??{ $escape}))\\/;
Anno
In reply to Re^5: Replace only unescaped metachars
by Anno
in thread Replace only unescaped metachars
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |