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/.../) { ... }
In reply to Re^3: Weird Regexes Stuff
by AnomalousMonk
in thread Weird Regexes Stuff
by slinky773
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |