[rt-users] Regular expressions (Perl regex) for validation
huotg01
Gaston at huot.me
Tue Sep 30 09:14:35 EDT 2014
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.
More information about the rt-users
mailing list