real simple regex

From: Date: Wed, 12 Sep 2001 01:32:23 +0000
Subject: real simple regex
Groups: php.general 
Request: Send a blank email to php-general+get-67666@lists.php.net to get a copy of this message
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 <cdechery@easynet.com.br>"; so what I want is: the string between '<' and '>' or the last 'word' of the 'sentence' (for something like "\"Christian Dechery\" cdechery@easynet.com.br"). thanks... p.s: meu novo email é cdechery@easynet.com.br ____________________________ . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer

« previous php.general (#67666) next »