fork download
  1. import re
  2. text = "Esc. 7, Fº 10, "
  3. res = re.findall(r"\S+:[^.]+", text);
  4. if res:
  5. print(res)
  6. else:
  7. print("Match not found")
Success #stdin #stdout 0.02s 9464KB
stdin
Standard input is empty
stdout
Match not found