files = ['mydir/states.rb', # don't match these'countries.rb','mydir/states_bkp.rb', # match these'mydir/city_states.rb']excluded = ['states', 'countries']
# set my_rgx here
result = WankyAPI.filter(files, my_rgx) # I didn't write WankyAPI...assert result == ['mydir/city_states.rb', 'mydir/states_bkp.rb']