I'm trying to parse linux version with the following regex
^Linux version ([0-9a-z.-]*) \([^@]*@[^)]*).*
This is the result
Traceback (most recent call last):
File "", line 1, in module
File "/usr/lib/python2.6/re.py", line 190, in compile
return _compile(pattern, flags)
File "/usr/lib/python2.6/re.py", line 245, in _compile
raise error, v # invalid expression
sre_constants.error: unbalanced parenthesis
How to resolve this?, is there something wrong with my regex?. Thanks