in reply to regexp find last word
$_ = "fox comes and fox goes into forest"; s/(.*)(fox.+?forest)/$1the $2/; print;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regexp find last word
by holli (Abbot) on Mar 02, 2005 at 14:57 UTC | |
by Crackers2 (Parson) on Mar 02, 2005 at 15:45 UTC | |
by Anonymous Monk on Mar 03, 2005 at 10:46 UTC | |
by Roy Johnson (Monsignor) on Mar 02, 2005 at 16:00 UTC | |
by ikegami (Patriarch) on Mar 02, 2005 at 15:45 UTC | |
by Roy Johnson (Monsignor) on Mar 02, 2005 at 15:50 UTC | |
by valentin (Abbot) on Mar 02, 2005 at 21:12 UTC |