I’m trying to concat some strings for sql query in a snippet but it strips all [[:char_class:]] from it.
$regexp_arr = array('(word1)', '(word2)');
$value = 'word3';
$regexp_str = implode('[[:space:]]', $regexp_arr);
$v1 = '[[:<:]](' . $value . ')';
echo $regexp_str;
// gives
'(word1)(word2)';
// instead of
'(word1)[[:space:]](word2)'
echo $v1;
// gives
'(word3)'
//instead of
'[[:<:]](word3)'
Has it something to do how modx parses tags and placeholders? Thought that strings in snippets doesn’t get pre-parsed the way chunks do…
Is there something I can do about it ? Thanks in advance for any clarifications!
(modx 2.3.3, php 5.6.36)