~/$ perl -e '$string=" bbaaccbab sdcbalsbadcnw";while($string=~s/(\S+\ +s.+?)b(?=a)/$1B/g){}print "$string\n";' bbaaccbab sdcBalsBadcnw
In reply to Re: Work-around for variable length look-behind?
by Utilitarian
in thread Work-around for variable length look-behind?
by pat_mc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |