[rt-users] Regular expressions (Perl regex) for validation
Marc Chantreux
mc at unistra.fr
Tue Sep 30 10:13:05 EDT 2014
On Tue, Sep 30, 2014 at 09:18:37AM -0400, Gaston Huot wrote:
> In this custom field, the user has to enter:
> -either nothing
> -either a number of exactly 2 digits
if you use the x modifier:
(
# Nothing
|
\d{2} # two digits
)
the old school one is
(|\d{2})
HTH
--
Marc Chantreux,
Mes coordonnées: http://annuaire.unistra.fr/chercher?n=chantreux
Direction Informatique, Université de Strasbourg (http://unistra.fr)
Service Métiers, Pôle Outils Collaboratifs
"Don't believe everything you read on the Internet"
-- Abraham Lincoln
More information about the rt-users
mailing list