does the work, but does it meets your requirements?s/^(.*?)foo/my $x=$1; $x.($x=~m[toto]?"foo":"bar")/e
Courage, the Cowardly Dog
In reply to Re: look-behind regex
by Courage
in thread look-behind regex
by zejames
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |