thx Sheppy, good enough for me. i am a beginner in perl.


________________________________
From: Sheppy R <bobross...@gmail.com>
To: Rob Coops <rco...@gmail.com> 
Cc: Rajeev Prasad <rp.ne...@yahoo.com>; perl list <beginners@perl.org> 
Sent: Tuesday, November 29, 2011 9:54 AM
Subject: Re: extracting email addresses from a file

Couldn't you just use the non-whitespace character to capture everything
before and after the @ symbol?

s/^.*\s(\S+@\S+)\s.*$/$1/

Reply via email to