import re m = re.search(r'\b\d+ ?m(?:ins)?\b', 'See you in 2 mins or sooner')if m: print(m[0])
Standard input is empty
2 mins
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!