<#if:var1:eq:var2>
var1 can be any string, and in many instances can be a multi line string, causing the rest of the tag too movie down :
I have created a reg ex function to extract these tags from a file and works perfectly for thosae instance where var1 is NOT multi line :
Code: Select all
preg_match_all("/<\#if:.*?>/s", $Template, $StartTags, PREG_OFFSET_CAPTURE);It does however return everything upto the first newline \n eg, some sample output :
Code: Select all
Array
(
[0] => Array
(
[0] => Array
(
[0] => <#if:600mg Glucosamine Sulphate
[1] => 1624
)
)
)Tried allsorts with this so any help would be great!