Also, make sure that you make the match ungreedy with the U modifier, or
use:
(.*?)
James
Niklas lampén wrote in message
000501c1d0aa$4a5d97f0$ba93c5c3@Niklas">news:000501c1d0aa$4a5d97f0$ba93c5c3@Niklas...
preg_match_all();
Niklas
-Original Message-
From: Stefen Lars
PROTECTED]
Reply-To: liljim [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Returning mutliple matches of a regex with preg_match()
Date: Thu, 21 Mar 2002 11:42:35 -
Also, make sure that you make the match ungreedy with the U modifier, or
use:
(.*?)
James
Niklas lampén wrote
preg_match_all();
Niklas
-Original Message-
From: Stefen Lars [mailto:[EMAIL PROTECTED]]
Sent: 21. maaliskuuta 2002 7:28
To: [EMAIL PROTECTED]
Subject: [PHP] Returning mutliple matches of a regex with preg_match()
Hello all
I have been scratching my head for the last two days about
use preg_match_all();
the var_dump($matches); to see what happened.
Best regards,
Andrey Hristov
- Original Message -
From: Stefen Lars [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 7:27 AM
Subject: [PHP] Returning mutliple matches of a regex with
4 matches
Mail list logo