On Sat, Jun 02, 2001 at 05:32:48PM +0200, Yann Sagon wrote:
> ereg('([0-9]{4})(\.[0-9]{4})(\.[0-9]{3})', $fp[$i]
[...]
> Savoir quel a �t� l'occurence trouv�e!
> cad par exemple, 0542.4125.005 ou 9542.0045.440 ou n'importe quoi
> d'autre qui correspond au crit�re!
int ereg (string pattern, string string [, array regs])
If matches are found for parenthesized substrings of pattern and the
function is called with the third argument regs, the matches will be
stored in the elements of the array regs. $regs[1] will contain the
substring which starts at the first left parenthesis; $regs[2] will
contain the substring starting at the second, and so on. $regs[0] will
contain a copy of string
http://www.php.net/manual/en/function.ereg.php
Faut toujours aller lire la doc disponible :)
--
Francois Deppierraz <[EMAIL PROTECTED]>
Nimag Networks S�rl - www.nimag.net
PGP Key ID: 9D283BC9
--
http://www-internal.alphanet.ch/linux-leman/ avant de poser
une question. Ouais, pour se d�sabonner aussi.