template modification regex with xenforo variables

tenants

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 {$:
Code:
#<dl[^>]*>[^<]*<dt[^>]*>[^<]*<div {$xenforoVariable}(.*?)</dl>#siu

for the same reason even this regex will not work
Code:
#{$xenforoVariable}#siu

Is there a way of passing variables into the core tms regex?
 
Top Bottom