I am looking for a simple solution to my problem.
I have a text string which contains several pieces of information enclosed in '' tags. I am looking for an example piece of code which will parse through the text and replace these tags with other information.
String = "Hello [foo] world. How are you [bar] today?"
output = "Hello Chris world. How are you Hughes today?"