I'm trying to make a validation for a custom field and obviously I'm missing
something.

The user has to enter in this custom field:
  -either nothing
  -either a number of exactly 2 digits

I'm ok with the "exactly 2 digits": (?#2 digits. E.g.:01,11,12)^\d{2}$
but don't know how to add the possibility of entering nothing.

Someone has the answer ?

Thanks.

GH



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Regular-expressions-Perl-regex-for-validation-tp58667.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training November 4 & 5 Los Angeles
http://bestpractical.com/training

Reply via email to