in reply to HELP! - Pattern matching problem
You're very close; try this:
if ($variable =~ /^v\d{2}$|^\d{2}$/) [download]
or
if ($variable =~ /^v?\d{2}$/) [download]