Hi Peeps,

I was wondering if you would be able to help me with someting. I have been ripping my hair out over it and i can't find a way to do it. I have a text file that contains a load of crap as well as some e-mail addresses that i want to keep. Below is a section of the file:
","lliu5@yahoo.com","lliu5@yahoo.com","SMTP","support@domain.com","sup +port@do= main.com","SMTP" ","ishmale423@excite.com","ishmale423@excite.com","SMTP","support@doma +in.com"= ,"support@domain.com","SMTP"
Now, the idea is that i want to extract all e-mail addresses apart from ones ending in @domain.com. Each e-mail address is entered twice, so idealy i would like it to do something like: pick first e-mail address => write it to file seperated with return => skip second, third and fourth e-mail address. So in the final file i would end up with:
lliu5@yahoo.com ishmale423@excite.com
Help is VERY much appreciated :)

In reply to Search And Export - Perl Needed? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.