Thread: eregi_replace
View Single Post
  #18  
Old 26-05-2003, 14:10
Matt Matt is offline
Super modérateur
1 Highscore
 
Join Date: 24-12-2002
Posts: 4,453
Ca y'est .. j'ai compris le problème ...

Ceci devrait marche :
$news_main = eregi_replace("\[url=([[:alnum:]]+)://([^<[pace:]]*)([[:alnum:]#?/&=])\]([[:alnum:]#?/&= ]*)\[\/url\]", "<a href=\"\\1://\\2\\3\" target=\"_blank\">\\4</a>", $news_main);
Reply With Quote