Regular expressions Q

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux