in reply to HELP! - Pattern matching problem

You're very close; try this:

if ($variable =~ /^v\d{2}$|^\d{2}$/)

or

if ($variable =~ /^v?\d{2}$/)

_______________
D a m n D i r t y A p e
Home Node | Email