• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

template modification regex with xenforo variables


Well-known member
The part of template that I want to inject into contains a xenforo variable, in fact the only way to distingush it from other parts of the page is the variable

I wanted to use regex (not simple replacement), since other add-on developers will use this template, and I don't want to write over what they have done / not find the area if they change it

obviously this regex doesn't work because its looking for {$... and the raw data does not contain {$:
#<dl[^>]*>[^<]*<dt[^>]*>[^<]*<div {$xenforoVariable}(.*?)</dl>#siu
for the same reason even this regex will not work
Is there a way of passing variables into the core tms regex?