I want to do something like this:
reverse_template("That was [b]cool![/b]", "[b]{TEXT}[/b]", "<span class=\"bold\">{TEXT#}</span>");
And have it return something like this:
That was <span class="bold">cool!</span>
I have a good plan on how to do it, but I have no clue on how to keep the "cool!" substring intact. 😕
Basically, it will change the string to something like this:
"That was <span class="bold">{TEXT1}</span>"
And then after changing all the tags, it'll replace "{TEXT1}" to "cool!"
Again, I have no idea how to get that substring...:xbones: