Communauté Informatique NDFR.net : eregi_replace - Programmation Web (HTML, PHP, ASP, Java, XML, etc.)
 
eregi_replace
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 21-04-2003, 18:17
Matt Matt is offline
Super modérateur
1 Highscore
 
Join Date: 24-12-2002
Posts: 4,453
Effectivement, j'ai fait une ch'tite erreur ... Voilà ce qui arrive quand on teste pas
Voilà un code qui marche :
$string = eregi_replace("\[url=([[:alnum:]]+)://([^<[pace:]]*)([[:alnum:]#?/&=])\](.+)\[\/url\]", "<a href=\"\\1://\\2\\3\">\\4</a>", $string);
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 08:23.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.