Vote count:
0
Can anybody help me to understand what those lines are doing ?
reg = re.compile(r"(%s.*?%s|%s.*?%s)" % ( '{{','}}') )
reg.split('blablabla hello world {{var}} \n blablabla')
I don't understand the %
on the regex expression. And why we split on reg
variable expression.
asked 55 secs ago
Aucun commentaire:
Enregistrer un commentaire