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


in reply to Re^3: Regex problems using '|'
in thread Regex problems using '|'

I'm not sure why the match is failing with the alternation when it matches correctly without it. I understand that if the first pattern does not match, it will go on to the second half . That's the behavior I want with regards to the rest of the records. Why is the match failing? That's what I do not understand, since it works correctly as long as the alternation is removed.