I have a string like this:
(link)there is link1(/link), (link)there is link2(/link)
Now i want to set the links that it look like this:
<a href='there is link1'>there is link1</a>, <a href='there is link2'>there is link2</a>
I tried with preg_replace but the result is an error (Unknown modifier 'l'
)
preg_replace("/\(link\).*?\(/link\)/U", "<a href='$1'>$1</a>", $return);