Hrenojed Posted October 4, 2007 Share Posted October 4, 2007 Hey, I need to upgrade some website I made and I'm kinda out of PHP for a while. I need to make url like [url=http://www.google.com]Search with Google![/url] At the current website, I have regex for stuff like bold, italic, etc. $c['text'] = preg_replace("#\[b\](.*?)\[\/b\]#is", "<b>$1</b>", $c['text']); I need to have a regex for url that looks like the one up there for Google. I've searched on google and here and I couldn't find anything like this. Thanks! Hrenojed Quote Link to comment https://forums.phpfreaks.com/topic/71776-url-regex/ Share on other sites More sharing options...
effigy Posted October 4, 2007 Share Posted October 4, 2007 See this topic. Quote Link to comment https://forums.phpfreaks.com/topic/71776-url-regex/#findComment-361709 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.