You're very close; try this:
if ($variable =~ /^v\d{2}$|^\d{2}$/)
or
if ($variable =~ /^v?\d{2}$/)
In reply to Re: HELP! - Pattern matching problem
by DamnDirtyApe
in thread HELP! - Pattern matching problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |