From: Azalar --- [mailto:pteale / gmail.com] # The array is created when i use the scan method so if i used # reject it # would become a two pass process which is what i am doing # anyway so I was # wondering if regular expressions had built in support for this. well if it's thumb for thumbs sake, we can be stubborn about it :) irb(main):036:0> re2 => /galleries.*?([^t][^h][^u][^m][^b]).jpg/ irb(main):038:0> g.select{|x| x=~re2 } => ["galleries/image1.jpg", "galleries/image2.jpg", "galleries/image3.jpg"] kind regards -botp