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 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. Link to comment https://forums.phpfreaks.com/topic/71776-url-regex/#findComment-361709 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.