[rt-users] Regular expressions (Perl regex) for validation
Gaston Huot
Gaston at huot.me
Tue Sep 30 09:18:37 EDT 2014
I'm trying to make a validation for a custom field and obviously I'm
missing something.
In this custom field, the user has to enter:
-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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140930/de231e52/attachment.htm>
More information about the rt-users
mailing list