import recontent= "11:20pm"content = re.findall(r"[^\W\d_]+|\d+(?::\d+)?", content)print(content)
Standard input is empty
['11:20', 'pm']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!