1 while s/ \s [^b]* \K b (?=a) /B/x; # ^ only start the substitution here # ^ go to the first b # ^ only search second string
(Update: added the "before a" criterion)
In reply to Re: Work-around for variable length look-behind?
by moritz
in thread Work-around for variable length look-behind?
by pat_mc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |