Sort out emails from document

Robzi

Junior Member
Joined
Jul 5, 2010
Messages
143
Reaction score
32
Lets say i have come over a big list of emails but its all a mess with other words/text.
I need them to be like "[email protected]; [email protected]; [email protected]" to send out newsletter.

Is it possible to get all emails out from a list like this:
username=pendu157
[email protected]
password=pendulab
password_confirm=pendulab
country=AF
msisdn=651111111
isyp=0
isPremiumChat=1
dob=1982-07-13
>
<user_register.php: 2007-12-18 01:11:39
GET
username=pendu158
[email protected]
password=pendulab
password_confirm=pendulab
country=AF
msisdn=651111111
isyp=0
isPremiumChat=1
dob=1982-07-13
>
<user_register.php: 2007-12-18 01:11:50
GET
username=pendu159
[email protected]
password=pendulab
password_confirm=pendulab
country=AF
msisdn=651111111
isyp=0
isPremiumChat=1
dob=1982-07-13
>

Maby a program that can sort out all words between "email=" <EMAIL> "password=".
Or sort out all words after "email=" and save the email in a new document with all other email like "[email protected]; [email protected]; [email protected]".
Is there any service for this? I mean there have to be a software that can do this kind of stuff.
 
Last edited:
Ok - look for common factors and hope for a 95% success rate

So in pseudo code (sort of - forgotten the proper syntax for realt pseudo code - who hasn't = lol)

F = number of lines in file
G = Current line number
Loop until G>F
Read line G

Search $
If search contains "email ="
Create a string from the current line ($)

Search for "@"
Between "email = and "@" = username

Search for "."
Between "@" and "." = domain name

Take everything to the right of "."
Search for space " "
Between "." and " " = suffix [.com or.org or .co.uk or whatever]

Concatenate variables username, domain name and suffix
Output the concatenated string [this is an email address in the correct format)]
G=G+1
Loop

Could turn that into something in Ubot or VBA or Zenno in about 10 minutes.

Scritty
 
In a recent thread this was recommended as a way to extract emails from a given document,
Code:
http://emailx.discoveryvip.com/
 
even easier - your list is already formatted - so whack it into excel and filter the column by "contains email ="
then do a "Right$" on those lines ("Right$ 7,50" should do it - 50 is again totally arbitrary the command will stop once it has reached the number of characters in the string anyway - 50 is just to make sure it gets them all - you could make it more sophisticated by doing a "LEN" command first to establish the length of the string/email addy then Right$ to the LEN from position 7)

The code in my first post will get extract emails from just about any block of text that contains emails in the "email = " format. so it might be more useful for less sorted lists.

Scritty
 
Back
Top