Regular expressions Q
| From: | Jack dot van dot Zanen at nuon dot com | Date: | Thu, 28 Oct 2004 12:47:00 +0000 |
| Subject: | Regular expressions Q | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-200532@lists.php.net to get a copy of this message | ||
Hi All
I'm trying to achieve the following:
In a text string there may be a number of substrings that match my criteria.
I need to retrieve all of them.
This is what I have so far and works perfect for the first substring but
ignores the possibility of others. I need to know if there are more in the
string that match and if so need to have those.
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
PHP 4.3.4
What am I doing wrong here?
THX
Jack