From: Robert Retzbach Date: 2005-12-13T05:36:29+09:00 Subject: Re: matches -> regexp ? ako... schrieb: >Hello, > >this is not exactly a ruby problem, i hope people will not consider >this spamming. > >does anyone know of any reference or an algorithm to build a regular >expression (a finite automaton, in general) that would match a given >set of strings? i of course mean a regexp that would match just the >given strings, and not any other. so solutions like /^.*$/ are not >acceptable ;-) > >thanks >konstantin > > > > > nice challenge, reminds me a bit of the 4th rubyquiz :>