Re[2]: [PHP] preg help please :)

2003-10-16 Thread Tom Rogers
Hi, Friday, October 17, 2003, 10:26:40 AM, you wrote: JF> 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/p

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

[PHP] preg help please :)

2003-10-15 Thread Justin French
Hi, 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 link found inside a string, but falls over horribly if there's two links inside