in reply to
regexp find last word
s/(fox[^f]*(?:f(?!ox)[^f]*)*forest)/the $1/
Comment on
Re: regexp find last word
Download
Code
In Section
Seekers of Perl Wisdom