p $stdin.read.split(/^(?=\.\.)/)
.title1 hoge fuga ..title2 hoge2 fuga2 ..title3 hoge3 fuga3
[".title1\nhoge\nfuga\n", "..title2\nhoge2\nfuga2\n", "..title3\nhoge3\nfuga3"]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!