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>
        */
    
-- 
View this message in context: 
http://www.nabble.com/Patternstring-for-Email-validator-tp14710186p14710186.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to