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 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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php