import retext = "A VeRy LoNG SenTence Here"print(re.findall(r'\b(?:[a-z]*[A-Z]){2}[a-zA-Z]*\b', text))
Standard input is empty
['VeRy', 'LoNG', 'SenTence']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!