Need Some Help With Regex:
I want to replace
[url=http://youtube.com]YouTube.com[/url]
with
<a href="http://youtube.com">YouTube.com</a>
the regex
preg_replace("/[url=(.*?)](.*?)[/url]/is", '<a href="$1">$2</a>', $text);
why does this give me:
Warning: preg_replace() [function.preg-replace]: Unknown modifier 'r' in C:\Programa\wamp\www\func.php on line 18