From: Azalar --- Date: 2008-09-07T22:09:53+09:00 Subject: regular expression match and exclude I am parsing a web page full of image links that also contain links to the thumbnails for those images. Here is my test data.. galleries/image1.jpg galleries/image1thumb.jpg galleries/image2.jpg galleries/image2thumb.jpg galleries/image3.jpg galleries/image3thumb.jpg If i use this expression.. /galleries.*(?=thumb).*jpg/ The results are just those lines containing the word thumb. What I want to do is inverse this though and return only return that DONT contain the word thumb. -- Posted via http://www.ruby-forum.com/.