in reply to regexp find last word
Hi Try this,
$a = "fox comes and fox goes into forest"; $a =~ s#(fox.*?)(fox.*?forest)#$1the $2#gsi; print $a;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regexp find last word
by Anonymous Monk on Mar 02, 2005 at 15:34 UTC |