I need to dynamically replace certain values using regular expressions.
It's for a template engine that looks for
<: and
:> brackets with text between them.
The problem is it'll reconize any of the brackets (<:title:>, <:main:> etc) but I need it to dynamically insert the replcaement with the correct value from an array.
Here is the array
It has the title and menu.
Here is the regex
That works, but, it'll replace every set of tags with the title value, I need to take the value the regex finds, and place that value in the replacement array.
This was suggested to me at devshed, but it causes an error.
Anyone know how to carry over the values?