import reline = 'Keyboard.keyPressed();'print(re.findall(r'[^.();~]+|[.();~]', line))
Standard input is empty
['Keyboard', '.', 'keyPressed', '(', ')', ';']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!