From: Newb Newb Date: 2008-08-26T13:48:25+09:00 Subject: Still Query Continues Thanks for taking time for Reply. My Problem Has not Sorted Out.Actually i m Extracting These images from other Webpages. Using Hpricot i Got all the Image urls.I did code like below doc = Hpricot.parse(item.description) imgs = doc.search("//img") @src_array = imgs.collect{|img|"" } It has given all the image url.But for example i have image urls even like below - In this case the first one is valid image url because it has jpg file extensions.so i need to display the image urls which has the .jpg,.png,gif extensions only.. Is this possible using Regular Expressions? Pls Help me out To Understand -- Posted via http://www.ruby-forum.com/.