koolaidman52 Posted July 22, 2006 Share Posted July 22, 2006 I want a user to be able to enter [[this]] into an article (for easy wikipedia style linking). The artivcle gets stored int he database. Then when someone views the article I want the server to change [[this]] into [code]<a href="this.php">this</a>[/code]Any Guru's know what I might do? Quote Link to comment https://forums.phpfreaks.com/topic/15350-replace-this-with-this/ Share on other sites More sharing options...
Joe Haley Posted July 22, 2006 Share Posted July 22, 2006 regular expressions.http://php.net/preg_replaceand the like.Read up on em, find some tutorials and the like. Quote Link to comment https://forums.phpfreaks.com/topic/15350-replace-this-with-this/#findComment-62175 Share on other sites More sharing options...
koolaidman52 Posted July 22, 2006 Author Share Posted July 22, 2006 Thanks, it was a bit confusing but i figured it out form that page. Quote Link to comment https://forums.phpfreaks.com/topic/15350-replace-this-with-this/#findComment-62178 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.