Re: preg_match()

From: Date: Mon, 02 Dec 2002 18:28:37 +0000
Subject: Re: preg_match()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126743@lists.php.net to get a copy of this message
Why not use split() (http://www.php.net/split) or explode() instead of matching? ..michael.. On Mon, 2002-12-02 at 09:34, Sturle wrote: > 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 > -- Michael Sweeney <sweeney@verisity.com> Verisity Design, Inc

« previous php.general (#126743) next »