From: Peter Szinek Date: 2006-04-06T22:08:22+09:00 Subject: Re: String generalization > As you said for yourself this is quite a *general* problem. So my code is > not to show off a clever automaton, it is completely stupid, but rather to > give you the idea how to hide it ;) > Please note that it is not even complete (end handling has to be done) I > just wanted to give you ideas. Wow! That's what i like about Ruby. My solution in java (although more complete, and dealing with special cases etc) is about 10x bigger in size and much more ugly/obscure/unmaintainable etc. Thx for the code! > Just an idea: Maybe you should make some more effort in the definition of > the problem and post it to Ruby Quiz! Really? (I am new here, begun to learn Ruby 2 weeks ago) - i have seen Ruby Quiz but did not know that anybody can post problems... (And if it gets solved, this way "outsorce" a task from his full-time job tasklist ;-) Best wishes, Peter