I basically am reading a HTML file into a variable and then just trying to find snippets of code and replace them with other HTML.
I use $replace = preg_replace($search, $replace, $match)
There is nothing special about the search field, I'd just type {title} if thats what I was looking for there are no special chars to do the clever matching :-) I'm guessing this is the problem.
However it does replace the word title with my HTML and but leaves the HTML surrounded by the {}. Why doesn't it remove them, if I just try a word with no punctuation, i./e xxxtitlexxx it moans for not having them.
I am new to all this, so any help is greatly appreciated.
Thanks