I have a little problem with parsing a MediaWiki Template-Block: http://regex101.com/r/dD1hC9/1
- The RegEx I use to get the template from the text is:
\{\{Template1 (.+?)\}\}
. - The template:
{{Template1 |Parameter1=Text |Parameter2=Text |Parameter3={{Template2|hier|steht|text}} |Parameter4=Text }}
Is there any possibility, to parse the complete block in an associative array (parametername => value
), without loosing the template in Parameter3 respectively in all parameters?