

def __plugRegex(self, node, plug):
    identifier = self.identifier(node, plug)
    regex = identifier.replace('[', '\\[')
    regex = regex.replace(']', '\\]')
    regex = regex.replace('"', '[\'"\']')
    return re.compile(self)

dataset/ETHPy150Open ImageEngine/gaffer/python/Gaffer/PythonExpressionEngine.py PythonExpressionEngine.__plugRegex/VarMisuse@63/70 `regex`->`self`