import retext = 'just a test'print(re.findall(r'(?=(\w{2}))',text))
Standard input is empty
['ju', 'us', 'st', 'te', 'es', 'st']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!