I am busy with an application that uses transclusion. Basically I need to parse a given text and capture tags as follows:
{{author: name |
book : sometitle |
year : someyear |
img : {{img:.....}}
}}
My problem is that I need to recursively parse what is within the double curly brackets and replace it with other text. Is it possible to have recursion just using regex alone, can anyone offer a solution?
If you familiar with wiki text what I am doing is very similar.