On Tue, Apr 21, 2009 at 11:28 AM, Brian Wallace <draygen80 / gmail.com> wrote: > I do realize this :) , but if I could at least assume that "STRING" without > the .??? is a directory, it would suffice ... Since the application will run > in Windows there's less of a chance that a file called "STRING" would be > placed into the list. Still a dicey assumption, IMO, but > So a RegEx that matches anything up to the '.' file extension and excludes > '.' and '..' would be enough Something like irb(main):017:0> puts "wow" if /^[\w]+$/.match("foobar") wow => nil irb(main):018:0> puts "wow" if /^[\w]+$/.match("foo.bar") => nil irb(main):019:0> HTH! -- Hassan Schroeder ------------------------ hassan.schroeder / gmail.com