<?php

$str ="  ... {{word1}} {{word2}} .... etc";
preg_match_all("/\{\{(\w+)\}\}/", $str, $matches);
print_r($matches[1]);

?>