internationalization - Extract keywords in a pystache template with gettext -
i have html-template in project contain pystache codes such
{{#_}}word{{\_}}
i want know , how can extract words poeditor parsers
you use regular expression them, , remove don't want:
import re regex=re.compile("\{\{\#\_\}\}.+\{\\\_\}\} ") words=re.findall(regex, data) #to remove use re.split or searching [a-z].
Comments
Post a Comment