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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -