LM MNLGHT
0
Q:

regex get text between braces

$text = 'ignore everything except this {{ text1  }}';
preg_match('#\{\{(.*?)\}\}#', $text, $match);
var_dump($match);
0

New to Communities?

Join the community