Re: preg help please :)
| From: | Justin French | Date: | Fri, 17 Oct 2003 00:26:40 +0000 |
| Subject: | Re: preg help please :) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166375@lists.php.net to get a copy of this message | ||
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.phpNope -- didn't help sorry... if there's two links in a block of text, it will match from the start of the first one all the way through to the end of the second one. I think I need: "/$quote(<!$quote>*)$quote:$quote(<!$quote>*)$quote/" Where <!$quote> is substituted for the correct expression -- but my skills aren't there yet :) Justin