Hey all,
My first foray in to regular expressions has not been easy, with the Perl-style regular expressions that preg_match requires complicating things slightly for me, as I find that many of the email or website seeking regex I find simply won't work... Probably for some small reason attributable to the different style, that I'm unable to discern.
The code that I'm trying to write is looking for a specific email address, website, and also a name within html source, which looks like the following:
<br> E-mail: <a href="mailto:em ail@address.com ">email@address .com</a><br>
<br> Web site: <a href="http://www.address.com ">www.address.c om</a><br>
<td>
Vice President <br /> Joe Smith <br>
</td>
Wanting to collect the e-mail, url, and name, can someone help with conjuring up a regular expression I can plug in to preg_match?
Thanks very much
My first foray in to regular expressions has not been easy, with the Perl-style regular expressions that preg_match requires complicating things slightly for me, as I find that many of the email or website seeking regex I find simply won't work... Probably for some small reason attributable to the different style, that I'm unable to discern.
The code that I'm trying to write is looking for a specific email address, website, and also a name within html source, which looks like the following:
<br> E-mail: <a href="mailto:em ail@address.com ">email@address .com</a><br>
<br> Web site: <a href="http://www.address.com ">www.address.c om</a><br>
<td>
Vice President <br /> Joe Smith <br>
</td>
Wanting to collect the e-mail, url, and name, can someone help with conjuring up a regular expression I can plug in to preg_match?
Thanks very much
Comment