http://www.perlmonks.org?node_id=1026020


in reply to Re^5: Regex Help
in thread Regex Help

How about "everything from pirates to careebian" ?
But what about if the wording of the OP changes? Then your solution would no longer be useful.

Replies are listed 'Best First'.
Re^7: Regex Help
by hdb (Monsignor) on Mar 28, 2013 at 19:10 UTC

    Correct! He would need to change the regular expression. But then I was not completely serious in my reply... (even though it works!)

    One could also use variables in the regex like /($from.*$to)/.