Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

regex get text between braces

$text = 'ignore everything except this {{ text1  }}';
preg_match('#{{(.*?)}}#', $text, $match);
var_dump($match);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regex #text #braces
ADD COMMENT
Topic
Name
8+4 =