mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Mark regex
This commit is contained in:
parent
398e2a17dd
commit
6e7c07bc86
@ -86,7 +86,7 @@ class PredefinedExpressionDialog(BASE_DLG, WIDGET_DLG):
|
|||||||
self.filledExpression = None
|
self.filledExpression = None
|
||||||
self.options = options
|
self.options = options
|
||||||
self.expression = expression
|
self.expression = expression
|
||||||
self.variables = set(re.findall('\[.*?\]', expression))
|
self.variables = set(re.findall(r'\[.*?\]', expression))
|
||||||
self.comboBoxes = {}
|
self.comboBoxes = {}
|
||||||
for variable in self.variables:
|
for variable in self.variables:
|
||||||
label = QLabel(variable[1:-1])
|
label = QLabel(variable[1:-1])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user