Did you read the pages I linked to?

/^((?:[^.@\s,]+\.)*[^.@\s,]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i

(I forgot to put the . back in the excluded character classes at the start)

On Thu, Sep 24, 2009 at 11:22 AM, Sijo Kg <sijo / maxxion.com> wrote:
> Hi Paul Smith
>  >> Hmm, i forgot to escape a dot in there...
>>
>
> ^((?:[^@\s,]+\.)*[^@\s,]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i
>
> When tried this I get 2 failures
>
> .sijo.kg / yahoo.com  
> sijo..kg / yahoo.com
>
>
> Sijo
>
> --
> Posted via http://www.ruby-forum.com/.
>
>



-- 
Paul Smith
http://www.nomadicfun.co.uk

paul / pollyandpaul.co.uk