Compare( $_ = 'abcba' ) =~ s/b//g; # aca ( $_ = 'abcba' ) =~ s/bc//g; # aba ( $_ = 'abcba' ) =~ s/b(?=c)//g; # acba
( $_ = '!a!b!c!' ) =~ s/!.!/!_!/g; # !_!b!_! ( $_ = '!a!b!c!' ) =~ s/!.(?=!)/!_/g; # !_!_!_! ( $_ = '!a!b!c!' ) =~ s/(?<=!).(?=!)/_/g; # !_!_!_!
In reply to Re: Look ahead & Look behind
by ikegami
in thread Look ahead & Look behind
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |