in reply to Re^2: Looking for a cleaner regex
in thread Looking for a cleaner regex
If I want to find a string ending in foo or bar or baz, I just match against /(foo|bar|baz)$/ rather than repeat the EOL test in the regex. If that doesn't solve it for you perhaps using the techniques described in How to ask better questions using Test::More and sample data will help me and others understand where your problem lies.
|
|---|