Hi all,
I know this will show just how lightly I've scratched the surface of PHP coding, but I've encountered a task where I believe I will need to employ regex. The problem is, nothing I've tried -- functions and various parameters -- is working.
Basically, I have a string that looks like this:
"I like to eat [MARK]cheese[/MARK] as well as some [MARK]wine[/MARK] from time to time. But most of all, I love [MARK]pizza[/MARK]."
I want to go through that string and remove the text between every set of [MARK][/MARK] tags. I want to be able to use the text I extract, but also then replace the tags and the text in the outputted string. I'm doing this to create a footnote feature, basically.
Can anybody help me? I've been racking my brain for days on this. 🙁