From: ts Date: 2002-02-07T19:40:32+09:00 Subject: Re: shuffle (all possible sequences) >>>>> "T" == Tobias Reif writes: T> class String T> def consists_of word T> self =~ /[#{word}]{#{word.length}}/ T> end T> end Well, it depend what you want to do but try it with "aaa".consists_of "abc" "xxxxxxabcxxxxx".consists_of "abc" Guy Decoux