Parsing a free-form field looking for an email address

Mike Schwartz (PC Support) mschw at athenet.net
Fri Jan 27 13:47:40 PST 2006


> From: Kenneth Brody [mailto:kenbrody at bestweb.net]
> 
> Quoting Mike Schwartz (PC Support & Services, Appleton, WI) (Thu, 26 Jan
> 2006 18:44:00 -0600 (CST)):
> [...]
> > >>      Does anybody have a routine that parses a
> > >> free-form line looking for
> > >> an email address in it?  I thought somebody posted a
> > >> routine that did
> > >> this a while ago.
> [...]
> >  Yes, I found that edit posted by Peter Klaassen on 2/14/2001.
> >
> Assuming the edit was basically:  left_part "@" right_part
> you could brute-force it on any string which contains "@" by taking
> the left side and stripping the first character until it passes the
> left_part edit, and then taking the right side and stripping the
> last character until it passes the right_part edit.  (Or, you could
> take the opposite approach, and keep prepending characters to the
> left side until it fails, and back up one, and repeat with the
> right side.)
> --
> KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>

  Here's the edit from Peter:

em1    {{A}|{N}|{"&"}|{"-"}|{"_"}|[!" "!]}
email  {em1 | "."} "@" {em1 {"."}} A A [A]

   I also found the code and data file that I was originally looking for.
It should be of some help to me.  This was from Peter Klaassen also.  If
anybody wants the .ZIP file, I will send it privately.
--------------------
Dear colleagues,
Enclosed a small zipped filepro-file called domain, including an email edit
and a processing to check on the extension after the last dot of the
emailaddress. The extension is made 5 characters large for future purposes.
hope it works for you all.  It does for me (so far) any upgrades or advises
are appreciated.

regards,
Peter Klaassen - NCC Databank VOF
P.O.box 147, 1860 AC Bergen NH, Netherlands info at nccdatabank.nl
http://www.nccdatabank.nl voice +31-72-5899505 fax +31-72-5899710 mobile
+31-6-51321218
- website design and maintenance -
- Benelux Representative for FileProPlus -
--------------------- 



More information about the Filepro-list mailing list