Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract email addresses from text file resumes

Status
Not open for further replies.

zebrastripes

Programmer
Jul 8, 2002
8
US
Hi,

I'm curious if anyone can point me in the right direction here. Basically, my organization has about a thousand resumes that we've received as text files. I'm trying to think of a way to programmatically read through the text files, extract the email addresses from the resumes and shot out emails (one for each resume).

Are there any utilities available that would be able to do this? Or, if I have to do it myself, can anyone give me any ideas on how to approach this?

Thanks very much,
Zebrastripes
 
If you must do it yourself .... maybe it is an idea to think of the addresses as character strings containing @. When a @ is found, include the preceeding characters up to, but not including the next blank, and add the following characters until a space occurs (?). However, if @ is used as part of the text, the addresses cannot be extracted that way.
 
There is this thing called River that I did to deal with text file manipulations.

In the case you mention there are various ways to approach it, pbut assuming that you have a list of the files, as in DIR /B, in a file names FILELIST then

null | appendfl @FILELIST | Kepwith any "@"

would reduce the thousand files to lines with @ in them. A little more fiddling and we have email addresses only. Horrorshow; nyet problemski.

Enough for here, If you want, go to and aske me and we'll work it out.

J
 
Hey,

Thanks for the feedback. The River program sounds pretty good. I actually a free download on downloads.com that worked pretty well for this, Email Extractor 2.2. It has a pretty easy interface and no code is needed to run it.

Sorry for not posting this message sooner.

Zebrastripes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top