DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Request: (Email) Extractor With Options  (Read 9,116 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Request: (Email) Extractor With Options
« on: January 30, 2008, 02:24 PM »
One of the things i do occasionally at DC is take all the bounced email from the last newsletter and "extract" all emails and then remove them from future mailing lists.

I currently use a freeware email extractor but i'd like to see one with some more features.

This should be a simple project and i can code it myself in a day but i thought i'd put it out there in case someone wants to try it, and maybe make it more general.

So here is my idea for a more general extractor:

0) should be a gui utility (yes i know this would be easy to do with a commandline script).
1) let user drag and drop or add a number of files to process as input
2) show results in a memo with a button to save to file
3) options for specifying the regular expressions (multiple) to extract from each line if found
(the program should have maybe a helper to let you select common things like the regex for an email).
4) options for specifying a list of regular expressions to EXCLUDE from matching (ie if this is found in a regex match in step 3 ignore it)
5) option to reject duplicates.
6) save all options above on exit.

Anyone else have any ideas to add to it?  Anyone want to try to code this?

Jibz

  • Cold Warrior
  • Developer
  • Joined in 2005
  • ***
  • Posts: 1,187
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Participated in NANY Challenge Four Times
Re: Request: (Email) Extractor With Options
« Reply #1 on: January 30, 2008, 04:17 PM »
print "$1\n" if /([\w+-]+(?:\.[\w+-]+)*@\w+(?:\.\w+)+)/

"A problem, properly stated, is a problem on it's way to being solved" -Buckminster Fuller
"Multithreading is just one damn thing after, before, or simultaneous with another" -Andrei Alexandrescu

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Request: (Email) Extractor With Options
« Reply #2 on: January 30, 2008, 05:44 PM »
heheheh that smilie really captures your smart alecky nature..  ;D

Original address: https://www.donationcoder.com/forum/index.php?topic=12063.0