Trying to craft a regexp
From: Manuel VáZquez Acosta (manu_at_chasqui.cu)
Date: 10/30/03
- Next message: David Otton: "Re: [PHP] Echo issue RESOLVED!"
- Previous message: Justin French: "Re: [PHP] php: file upload program limitation.."
- Next in thread: Burhan Khalid: "Re: [PHP] Trying to craft a regexp"
- Reply: Burhan Khalid: "Re: [PHP] Trying to craft a regexp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: php-general@lists.php.net Date: Wed, 29 Oct 2003 22:07:59 -0500
Hi all:
I'm trying to find every simple mail address in an HTML that is not inside
an A tag.
I have tried this regexp:
(?<!maito\:)(\w+@\w+(?:\.\w+)+)(?![^<]*?</a>)
But its not working as I expect cause the only address in my tested HTML is:
<a href=mailto:manu_like@yahoo.com class="link-home">My address</a>
Any tips?
Manu.
- Next message: David Otton: "Re: [PHP] Echo issue RESOLVED!"
- Previous message: Justin French: "Re: [PHP] php: file upload program limitation.."
- Next in thread: Burhan Khalid: "Re: [PHP] Trying to craft a regexp"
- Reply: Burhan Khalid: "Re: [PHP] Trying to craft a regexp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|