regex - Filter/parse/modify emails and hrefs from html content in PHP4 -


I am not validating the email (in the html string) to find 3 different "email" content (and then Change):

  1. A plain email: such as user@test.com
  2. A mail-to href: e.g. & lt; A href = "mailto: user@test.com" & gt; User@test.com< / A & gt;
  3. An alias href: such as & lt; A href = "mailto: user@test.com" & gt; User's email & lt; / A & gt; / P>
      & lt; Span class = "spamspan" & gt; & Lt; Span class = "u" & gt; Users & lt; / Span & gt; @ & Lt; Span class = "d" & gt; Example.com & lt; / Span & gt; (& Lt; span class = "t" & gt; Spam hotter & lt; / span & gt;) & lt; / Span & gt;  

    So you can see that I also want to get these types of input, parse the email, user, domain and (optionally) in a display value. I am struggling with Reggaez to find these emails ... they should be directly in PHP to parse them.

    Edit: At the moment, I have been locked in PHP4 Take a look to parse the HTML.

You need one more.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -