Hi I have a little plugin system, I use this shortcode for example: {google}stackoverflow{/google}
I want it to replace that part with a link to the google search link, in this case: stackoverflow
How should I do this? I have this but it doesn't work:
preg_replace('#{google}([^{]+){/google}#i', '<a href="http://www.google.com?s=$1">$1</a>', $content);
{and}are reserved characters, BTW.