prova cosi:
Codice PHP:
  $stringa preg_replace("/\[url=(.+)\](.+)\[\/url\]/""<a href=\"\\1\">\\2</a>"$stringa);