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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

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

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