Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Regular expression for email address


Message #1 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Thu, 13 Dec 2001 13:22:05 -0000
Hello All,

The actual relevant section is, just to save you the search and all...

'http://developer.netscape.com:80/docs/examples/javascript/regexp/overview.h
tml'

John
> -----Original Message-----
> From: John Wm. Wicks [mailto:j_wicks@p...]
> Sent: Monday, December 24, 2001 05:37
> To: 'javascript'
> Cc: 'shankar_b_g@y...'
> Subject: RE: Regular expression for email address
>
>
> Hello Shankar,
>
> > -----Original Message-----
> > Subject: Re: Regular expression for email address
> > From: "Shankar" <shankar_b_g@y...>
> > Date: Fri, 21 Dec 2001 05:07:59
> > X-Message-Number: 1
> >
> >
> > Can you please explain how to use this regular expression, so that
> > it would be helpful to all. Sample code would be appreciated.
> >
> > > I've come up with this regular expression for checking the
> > validity of an
> > > email address
> > >
> > > /^[\w]+[\.\w]*@[\w]+\.[a-z]{2,4}[\.]?[a-z]{0,3}$/i
> > >
> > > Its close, but not quite there - does anyone have a better one?
>
> Check out the Netscape Developers site, there's a ton of
> validation REs and loads of example code...
> http://developer.netscape.com
> John
>


  Return to Index