preg_match()
| From: | Sturle | Date: | Mon, 02 Dec 2002 17:34:24 +0000 |
| Subject: | preg_match() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-126734@lists.php.net to get a copy of this message | ||
Hello
I have one coloumn with lots of e-mail adress like this:
oskdo@online.com;vas@ikttjenester.no;badleroen@ldap.no
firmapodst@ziem.no;vs@ikttjendester.no;bsaleroen@lddp.no
klartsvaar.drammen@tealekjop.no
And i want to take the first row and put the adresses into an array, then
the second row...
I try like this, but i don't know what i can write in preg_match() to only
get the email adress.
while(odbc_fetch_row($ret)){
$Epost = odbc_result($ret,"Epost");
preg_match_all( '/?????????????/', $Epost, $result);
foreach ($result[0] as $loop_result)
....
sturle