Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^6: Regex Help

by Anonymous Monk
on Mar 28, 2013 at 19:00 UTC ( #1026020=note: print w/replies, xml ) Need Help??


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 (Prior) 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)/.