Re: [PHP] preg help please :)

2003-10-16 Thread Justin French
On Thursday, October 16, 2003, at 04:32 PM, Eugene Lee wrote: Try inverting the greediness with a "U" pattern modifier: "/$quote(.*)$quote:$quote(.*)$quote/U" For more details: http://www.php.net/manual/en/pcre.pattern.modifiers.php Nope -- didn't help sorry... if there's two links in a bl

Re: [PHP] preg help please :)

2003-10-15 Thread Eugene Lee
On Thu, Oct 16, 2003 at 02:23:45PM +1000, Justin French wrote: : : I have the following: : : \\1", : $text : ); : ?> : : It basically matches "link text":"url" with the added twist of having : the quotes converted to “ or “ by a previous function. : : It works fine if there is one

RE: [PHP] preg help ?

2002-09-28 Thread Thoenen, Peter Mr. EPS
// should work ... prob. a better way to do this but its functional :) -Peter > -Original Message- > From: :B nerdy [mailto:[EMAIL PROTECTED]] > Sent: Sunday, September 29, 2002 02:05 > To: [EMAIL PROTECTED] > Subject: [PHP] preg help ? > > > ive got a html document with the following

Re: [PHP] preg help (regexp newbie) whitespace

2002-07-01 Thread Jason Wong
On Tuesday 02 July 2002 10:06, Justin French wrote: > what's the correct pattern for "one or more whitespaces" (including \n\r\t > and anything else I'm missing)? I prefer the PCRE so: \s+ > what about "zero or more whitespaces"? \s* It's all in the manual! -- Jason Wong -> Gremlins Associ