I have the following:
<?
$quote = "̶[0|1]{1};";
$text = preg_replace(
"/$quote(.*)$quote:$quote(.*)$quote/",
"<a href='\\2'>\\1</a>",
$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 a string.
How can I improve the (.*) to exclude $quote ?
Thanks, Justin French
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

