a = "%span.rockets#diamonds.ribbons.forever"a = a.scan(/^%\w+|\G[.|#]\w+/)puts a.inspect
Standard input is empty
["%span", ".rockets", "#diamonds", ".ribbons", ".forever"]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!