RE: [PHP] Regular expressions Q

From: Date: Thu, 28 Oct 2004 13:39:47 +0000
Subject: RE: [PHP] Regular expressions Q
Groups: php.general 
Request: Send a blank email to php-general+get-200536@lists.php.net to get a copy of this message
Thx, Just joined today, should have looked thru the archives first though. Jack -----Original Message----- From: Alex Hogan [mailto:hogana@gmail.com] Sent: Thursday, October 28, 2004 3:31 PM To: php-general@lists.php.net Cc: jack.van.zanen@nuon.com Subject: Re: [PHP] Regular expressions Q > ereg("(([[:blank:]+]|^)[09][0-9][4789][0][0-9]{3}[abcABC]?)","$zn[1]", > $zaakn > ummers1); > > I thought that ereg would get all of them and store them in the array > $zaaknummers1 however this is not the case I just asked a question similar to this the other day. Try using; preg_match_all("(([[:blank:]+]|^)[09][0-9][4789][0][0-9]{3}[abcABC]?)", $zn[1], $zaaknummers1); alex hogan

« previous php.general (#200536) next »