in reply to Re^2: Weird Regexes Stuff
in thread Weird Regexes Stuff

How do I reference to something like  m/(\d{1,2})/ ...

If you mean the  {1,2} 'counted' quantifier, see Quantifiers in perlre.

Update: Also: Did you really mean to use the bitwise or operator  | in the if statement preceding the if statement in question?
    if ($input =~ m/.../ | $input =~ m/.../) { ... }