From: Paul Smith Date: 2009-09-24T19:29:25+09:00 Subject: Re: email regex 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 wrote: > Hi Paul Smith >  Thanks again >> 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    and > sijo..kg@yahoo.com > > > Sijo > > -- > Posted via http://www.ruby-forum.com/. > > -- Paul Smith http://www.nomadicfun.co.uk paul@pollyandpaul.co.uk