import retext = "Esc. 7, Fº 10, "res = re.findall(r"\S+:[^.]+", text);if res: print(res) else: print("Match not found")
Standard input is empty
Match not found
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!