[Tutor] Checking for valid e-mails

Sean 'Shaleh' Perry shalehperry@attbi.com
Thu Jan 30 19:54:39 2003


On Thursday 30 January 2003 08:38, Charlie Clark wrote:
>
> The perl stuff is at
> http://aspn.activestate.com/ASPN/Cookbook/Rx/Recipe/68432/index_txt
>
> This seems to catch pretty much everything but it's perl and I'm not su=
re
> what !~ and =3D~ do
>

$foo =3D~ /pattern/ is roughly equivalent to re.search(pattern, foo)

!~ means does not match it is analogous to the relationship between =3D=3D=
 and !=3D.