From: Christoph Blank Date: 2009-02-11T19:22:21+09:00 Subject: Method to get string combinations Hi, I have a text like this: "This {is|was} a {good|nice} day" and want to generate possible combinations like: This is a good day This was a good day This is a nice day This was a nice day I tried using zsh functionality to output this, but it doesn't seem that easy. Does anyone know an easy way how to do this in ruby? Thank you. -- Posted via http://www.ruby-forum.com/.