Dir["mydir/[rs]*"] # => ["mydir/ruby_script.rb", "mydir/subdirectory"]Dir["mydir/[^s]*"] # => ["mydir/ruby_script.rb", "mydir/text_file"]