Incorrect Regex in clearUnusedArrayDatafields
-
$datastructure = preg_replace("/{".$regExpPatt.":ifNotEmptyAddLeftRight:".$this->regExpPatternDetect."}/i", "", $datastructure);Should be:
$datastructure = preg_replace("/{".$regExpPatt.":ifNotEmptyAddLeftRight:".$this->regExpPatternDetectWithBrackets."##".$this->regExpPatternDetect."##}/i", "", $datastructure);Also, I believe that the html, matches are missing from the clearUnusedArraryDatafields.
The documentation shows that
{street:ifNotEmptyAddLeftRight:extratextleft##extratextright}is the proper syntax, but is missing the last two pound signs before the ending bracket. ie.{street:ifNotEmptyAddLeftRight:extratextleft##extratextright##}
The topic ‘Incorrect Regex in clearUnusedArrayDatafields’ is closed to new replies.