fork download
  1. import re
  2. match = re.search('^(?!.*opt3)FileName\.abc', 'FileName.abc 0 opt1 opt2 opt4')
  3. if match:
  4. print(re.group())
Runtime error #stdin #stdout #stderr 0.11s 23712KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 4, in <module>
AttributeError: module 're' has no attribute 'group'