Hi--

Two questions regarding Intake and it's regular expression engine....

1. String validation.  I'm trying to enforce the following rule: an
input field for a user's name/prefix/suffix/alias can only contain
alphabet letters, spaces, and periods ('.').  I thought a regex like
this ("[A-Za-z]") would enforce letters only, but it also allows
digits.  I've found some regular expression tutorials, but the patterns
they suggest don't seem to work from within Intake.  Any suggestions?

2. Date validation.  I need be sure a date follows a particular format
(mm/dd/yyyy), and I need to be sure that the day indicated is
permissable for the given month (i.e.: 02/31/1922 is NOT valid).  The
format validation is easily done via Intake. The DateValidator in the
commons library seems to only do format validation.  Obviously this sort
of validation can be done via the GregorianCalendar class, but I'm
wondering if a package exists to do this sort of validation (as I don't
want to re-invent the wheel).

TIA,
b

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to