I\'m trying to do a PHP regular expression but i can\'t find the right way ...
Imagine I have this string: \"hello, my {{name is Peter}} and {{I want to eat chocolat
EDITED
As non-greedy matching seems to be faster than negated one (see here), I change my answer too. Thought it was the other way round...
preg_match("/\{\{(.*?)\}\}/", $string)
You might want to use preg_match_all to get all matches
preg_match_all