Thank you Marc for the final answer: ^(|\d{2})$ GH -- View this message in context: http://requesttracker.8502.n7.nabble.com/Regular-expressions-Perl-regex-for-validation-tp58668p58672.html Sent from the Request Tracker - User mailing list archive at Nabble.com.