I have created a simple content management system for my web site and I would like to use Wikipedia-style coding in the editing of pages.
Is there an easy way to obtain/use the string replace function that Wikipedia uses to change things like '''this''' into bold text and to make [site.com This Text] a link?
Would there be anything wrong with just writing a function that has a bunch of str_replace that changes things like three apostrophies into <b> and </b>.
I'm not experienced with regular expressions enough to know how to use them, but I think it could help in this situation, right? For example, how would I change the first set of three apostrophies into <b> and the second set into </b> ? Or, determine that [http://site.com This Link] is a link when [this is not] ?