[thelist] testing for email address in perl

alpha at student.uci.agh.edu.pl alpha at student.uci.agh.edu.pl
Sun Jan 13 07:56:17 CST 2002


On Sun, Jan 13, 2002 at 03:17:36PM +1000, Adrian Fischer wrote:
> I think I could spilt on white spaces character "\s" or is it a non white
> space character "\S" as the address should have one at front and back.  Good

The simplest one, without any validation (if you need it, i could send
you something much more complicated):

/\s(.+ at .+\..+)\s/

-- 

   _.|._ |_  _.  |  Adam Byrtek, alpha at irc.pl
  (_|||_)| |(_|  |  icq 10401984, gg 1802819
      |             




More information about the thelist mailing list