If you read those threads closely, then you saw a whole bunch of "don't do this with a regular expression" type posts. There is a module on CPAN called Email::Valid which does a pretty good job. Also, since you know the nodes are out there and know how to specify the content you want, you might try using the handy "Search" box that crops up at the top of every page or, failing that, Super Search (look underneath the chatterbox for the link).

Let's try, at random, the following phrase match email address (follow that link and you'll get what you would have got had you typed that phrase into the search box).

HTH! (I hope I don't sound like I'm lecturing; I really am doing what I think will help you most on this question and in the future.)

handing out fishing poles since yesterday


In reply to Re: pattern match e-mail addresses by arturo
in thread pattern match e-mail addresses by Fian

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.