import re test_str = ("beetles men")regex = r"(?<=\b[mb])\w+"print(re.findall(regex, test_str))
Standard input is empty
['eetles', 'en']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!