[rt-users] Custom field format validation without being mandatory
Edward Frye
rt at edwardfrye.com
Wed Jul 27 14:59:44 EDT 2011
>
> How can I setup a custom field validation and have if so that it can be
> blank, OR match my regular expression
>
> Currently I have: (?#YYYY-MM-DD HH:mm:ss)^[12]\d{3}-\d{2}-\d{2}
> \d{2}:\d{2}:\d{2}$
>
> Really what I guess what I think I'm looking for is
> /(^[12]\d{3}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$|^$)/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110727/b467fd47/attachment.htm>
More information about the rt-users
mailing list