The use of this variable anywhere in a program imposes a considerable performance penalty on all regular expression matches.
(although I have to say I'm not sure why you'd need the positive look-behind instead of just a normal match?)s/(?<=[a-zA-Z])([12])/ $1 == 1 ? 2 : 1 /eg;
In reply to Re^2: replace a digit with another digit
by Transient
in thread replace a digit with another digit
by kevyt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |