Crashes)[1],re.M|re.S)
File "/usr/lib64/python2.7/re.py", line 190, in compile
return _compile(pattern, flags)
File "/usr/lib64/python2.7/re.py", line 242, in _compile
raise error, v # invalid expression
sre_constants.error: unexpected end of regular expression
Need to CTRL-C to get back to shell prompt.
The problem is the "[" in the regexp.
=> Should not crash.
=> Should just print ERROR; invalid regexp and exit cleanly.
Reported by olahaye74 on 7 Mar 2014 16:04 UTC
Crashes)[1],re.M|re.S) File "/usr/lib64/python2.7/re.py", line 190, in compile return _compile(pattern, flags) File "/usr/lib64/python2.7/re.py", line 242, in _compile raise error, v # invalid expression sre_constants.error: unexpected end of regular expression
Need to CTRL-C to get back to shell prompt.
The problem is the "[" in the regexp. => Should not crash. => Should just print ERROR; invalid regexp and exit cleanly.