fork(1) download
  1. import re
  2. mi_no_find = list(re.finditer(r'\w+',"$$%%%%")) # not matching.
  3. count = 0
  4. if len(mi_no_find) > 0:
  5. for m in mi_no_find:
  6. print(m.group())
  7. count += 1
  8. print(count)
  9. else:
  10. print("-1")
  11.  
Success #stdin #stdout 0.01s 27744KB
stdin
Standard input is empty
stdout
-1