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


in reply to Problem with regular expression

Write a function (sub) to perform checks, then you're not limited by a fat regular expression you don't know how to write :)