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


in reply to regex anchoring issue

If you need your regex to match one of several possible text fragments of which at least one is longer than 1 character, you have to use an alternation (...|...|...) instead of a character class ([...]).
 

Some additional comments on your code:

Replies are listed 'Best First'.
Re^2: regex anchoring issue
by Anonymous Monk on Feb 15, 2013 at 22:30 UTC