you actually don't need regex...
if you take a few minutes you can do it all with strpos and substr, adn
it'll be faster than regex.....
-----Original Message-----
From: Christian Dechery [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 11, 2001 9:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] real simple regex
I had to write my own mail() function cuz PHP's does not work in Windows
very well..
But I suck at regex and I need to get the email address from the field from
that can be something like:
$from = "Christian Dechery <[EMAIL PROTECTED]>";
so what I want is:
the string between '<' and '>' or the last 'word' of the 'sentence' (for
something like "\"Christian Dechery\" [EMAIL PROTECTED]").
thanks...
p.s: meu novo email é [EMAIL PROTECTED]
____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]