fork(1) download
  1. import re
  2. s = 'fixed-string-123-456'
  3. result = re.findall('(?<=fixed-string-)(\d+)-(.*)', s)
  4. if result:
  5. print (result[0])
Runtime error #stdin #stdout #stderr 0.02s 28720KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 5, in <module>
AttributeError: 'list' object has no attribute 'group'