Jump to content

Archived

This topic is now archived and is closed to further replies.

koolaidman52

replace [[this]] with <a href="this">this</a>

Recommended Posts

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?

Share this post


Link to post
Share on other sites
regular expressions.

http://php.net/preg_replace
and the like.
Read up on em, find some tutorials and the like.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.