Get Email

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shapper

    Get Email

    Hello,

    I have a string, named body, that contains some HTML code.

    I need to find all anchors from body that contains an email address
    like:

    <a title="Send Email" href="mailto:ma il@mydomain.com ">Send Email</a>

    Then I need to remove it from body and add it to a list adding also
    the position on the body where it was.

    How can I do this?

    Thanks,
    Miguel

  • Marc Gravell

    #2
    Re: Get Email

    Well, the HTML Agility Pack would be a good start:


    This will make finding / etc trivial - the only thing that might be
    problematic is finding the position within the original document.

    Marc

    Comment

    Working...