$_ = "fox comes and fox goes into forest"; s/(.*)(fox.+?forest)/$1the $2/; print; [download]
In reply to Re: regexp find last word by borisz in thread regexp find last word by Murcia