I am a d***a**, it was "regex", not "regexp". Ah well...

----- Original Message -----
From: "Barbara Post" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 3:36 PM
Subject: form validator and regexp problem...


> Hi,
>
> I use the regexp expression from C 2.0.3 form validator example and want
to
> validate 2 email fields :
>
> in the descriptor :
>
>  <parameter name="emailTo" nullable="no" type="string"
> matches-regexp="^[\d\w][\d\w\-_\.]*@([\d\w\-_]+\.)\w\w\w?$"/>
> (the same for emailCc)
>
> and :
>
>   <constraint-set name="default">
>   <validate name="emailTo"/>
>   <validate name="emailCc"/>
>  </constraint-set>
>
> However, when I enter "r" in "emailTo" and "e" in "emailCc" fields the
form
> gets validated ! Uh, any idea why ? Thanks,
>
> Babs
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to