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