in reply to Replacing exactly the found instance in REGEX
$string =~ s/(traderid)(.*?)(traderid)/${1}myword${3}/s;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Replacing exactly the found instance in REGEX
by gwadej (Chaplain) on Dec 09, 2008 at 14:46 UTC |