Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

Stripping email

Status
Not open for further replies.

Jrc

Joined
Oct 11, 2007
Posts
27
Reaction score
0
Firstly, sorry this post is probably not what you thought the title suggested.

I have a large text file of data and every now and again there is a bit which says

"EMAIL [email protected]"

Is there any software that can strip all the emails out or is it a case of it is best to write my own program?
 
Any text editor which allows you to use regular expressions

Search: Email \b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
Replace:
 
I love Regex but I can only do them with a reference book and in longhand :(
 
#!/bin/bash
grep EMAIL file > file2
for i in `cat file2`; do
ADDY="`echo $i | cut -d \" \" -f 2`"
echo $ADDY >> list
done

Something along those lines should work...
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom