Hi Developers If you want to search all the emails from a web page you can use this simple regular expression to search all the email from any website.

(href=[“|\’])(mailto:)(.*?)([“|\’])

If you are using php script then your code will be like this.

preg_match(‘(href=[“|\’])(mailto:)(.*?)([“|\’])’, $Your String, $Return the data in Array);

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.