my_string = 'AaaBbbCcc DddEee'block = "[A-Z][a-z]+"puts my_string.scan(/#{block}(?:\s+#{block})*/)
Standard input is empty
Aaa Bbb Ccc Ddd Eee
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!