$ perl -le ' > $str = q{foo=bar&blah=ha}; > $str =~ s{(?<=foo=)[^&]+(?=&|\z)}{TEST}g; > print $str;' foo=TEST&blah=ha $
Cheers,
JohnGG
In reply to Re: REGEX question
by johngg
in thread REGEX question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |