|
|
![]() |
Website developmentDiscussing PHP, HTML, CSS, ASP, Javascript...
Hello to all... I have a small code problem, looking for a regular expression that would shorten URL changed in links (ie. http://www.ficgs.com/looooooooooooongurl.html would appear http://www.ficgs.com/looo...url.html .. Here is my regular expression : $url = preg_replace("#([\n ])?([hftp]+)://([a-z0-9-=_%\#$~%&;?./]+)#i", '\1<a href="\2://\3" target="_blank">\2://\3</a>', $url); Thanks in advance :)
[Buzz]
[Discussions]
[Seo forums]
[Meet people]
[Directory]
[Last posts] [Games online] [Register] [Help] [About] |
|
ADVANSTARTECH FICGS is also a Free Internet Correspondence Games Server, where you can play chess online for free in rated class tournaments and a unique correspondence chess world championship.
Feel free to link to FICGS to get referer links. Whatever you do, don't be bored. This is absolutely the most exciting time we could have possibly hoped to be alive. And things are just starting. (From movie Waking life) |