Have a look at the code for the 4.1 Email validator at
http://tapestry.apache.org/tapestry4.1/apidocs/src-html/org/apache/tapestry/form/validator/Email.html
That one should cover most cases.

Uli

mj123 schrieb:
I need a Regular expression that will validate an email adrress entered
Currently I am using "[EMAIL PROTECTED],4}$"
which is not doing the job

it should follow these rules

/**
     * <p>Is the specified email valid? Checks against that the following
rules
     * are complied with:
     * <ol>
     *  <li>No @ symbol</li>
     *  <li>Any more than 1 @ symbol</li>
     *  <li>Any spaces</li>
     *  <li>No chars before @ symbol</li>
     *  <li>No chars after @ symbol</li>
     *  <li>email starts or ends with . (period)</li>
     *  <li>If domain name contains no . (period)</li>
     *  <li>If first character of the domain name is a . (period)</li>
     *  <li>If last character of the domain name is a . (period)</li>
     *  <li>Any x 2 .. (periods) </li>
     * </ol>
     * </p>
        */


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

Reply via email to