Fix helper regex for python 3.7
This commit is contained in:
parent
8e25050f4a
commit
fff319bd8b
@ -384,7 +384,7 @@ def regex_from_template(template):
|
|||||||
|
|
||||||
# Replace ${\d+}
|
# Replace ${\d+}
|
||||||
#regexp = regexp.replace('${0}', r'([\d]+?)')
|
#regexp = regexp.replace('${0}', r'([\d]+?)')
|
||||||
regexp = re.sub(r'(\$\{\d+\}(\.?))+', r'([\w\.]+?)', regexp)
|
regexp = re.sub(r'(\$\{\d+\}(\.?))+', r'([\\w\.]+?)', regexp)
|
||||||
|
|
||||||
#regexp = re.sub(r'(\$\{\d+\}\.?)+', r'([\w]+?)', regexp)
|
#regexp = re.sub(r'(\$\{\d+\}\.?)+', r'([\w]+?)', regexp)
|
||||||
#regexp = re.sub(r'(\$\{\d+\}\.+)+', '(.+?)\.', regexp)
|
#regexp = re.sub(r'(\$\{\d+\}\.+)+', '(.+?)\.', regexp)
|
||||||
|
Loading…
Reference in New Issue
Block a user