Re: [PHP] Returning mutliple matches of a regex with preg_match()

2002-03-21 Thread liljim
[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 this regular expression problem. I would be really VERY happy if someo

Re: [PHP] Returning mutliple matches of a regex with preg_match()

2002-03-21 Thread 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

[PHP] Returning mutliple matches of a regex with preg_match()

2002-03-20 Thread Stefen Lars
Hello all I have been scratching my head for the last two days about this regular expression problem. I would be really VERY happy if someone could help me! I have the following text in the file 'text.htm', for example: -- BLOCKQUOTEP Cow, Cow, Cow, Cow, Cow Cow, Cow, Cow, Cow, Cow Cow, Cow,

RE: [PHP] Returning mutliple matches of a regex with preg_match()

2002-03-20 Thread Niklas Lampén
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

Re: [PHP] Returning mutliple matches of a regex with preg_match()

2002-03-20 Thread Andrey Hristov
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 preg_match