fork download
  1. import re
  2.  
  3. content = """
  4. id-HTRY098WE
  5. id-KNGT371WE?witkl
  6. id-ZXV555NQE?phnu
  7. eh-VCBG075LK
  8. """
  9. for item in re.findall(r'id-([^?\s]+)',content):
  10. print(item)
Success #stdin #stdout 0.02s 9204KB
stdin
Standard input is empty
stdout
HTRY098WE
KNGT371WE
ZXV555NQE