2009/5/29 Brian Candler <b.candler / pobox.com>: > Robert Klemme wrote: >> 2009/5/29 Brian Candler <b.candler / pobox.com>: >>> The OP explicitly said that he wanted to match single characters. It >>> would also make sense for other fixed-width fields, or delimited fields. >> >> But he did not state explicitly that the _strings_ that he wanted to >> analyze have fixed length. ¨Âèééó ÷èåòùïõò áððòïáãè âòåáëó> > But he's not just looking for strings with non-repeating characters. > Note the rule that says the fourth character must be equal to the second > character. This is an application-specific rule; I don't think we can > logically extend that to guess what the rule for the fifth or subsequent > characters would be. Well, yes. I just did it but I see that the conclusion is not necessarily a valid one. So let's hope for a better requirements spec next time. :-) Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/