I have html templates and I want to get list of all template variables like :
<li>User ID <!--{ID}--></li> 
<!--{ID}--> is a template variables
Edit:
Regex pattern for doing this is :
\<\!--\{(.*?)\}--\>
I need to catch only unique occurrences for any variable e.g <!--{ID}--> might be present multiple time in template 
 
     
    