fork download
  1. import re
  2. text = "A VeRy LoNG SenTence Here"
  3. print(re.findall(r'\b(?:[a-z]*[A-Z]){2}[a-zA-Z]*\b', text))
Success #stdin #stdout 0.02s 9636KB
stdin
Standard input is empty
stdout
['VeRy', 'LoNG', 'SenTence']