Finding the intersection between two regexes

Mark Fowler mark at
Thu Apr 24 23:28:33 BST 2014

On Thursday, April 24, 2014, Michael Lush <mjlush at> wrote:

    if ($x =~ /^246[2-9]\d{6}$/ and  $x =~
> /^246(?:(?:2[346]|45|82)\d|25[0-4])\d{4}$/ )

Those /d are incorrect. You want [0-9] or to use the /a regexp flag on a
suitably modern perl.


More information about the mailing list