From: Raju Alluri Date: 2008-12-05T02:47:55+09:00 Subject: Pattern matching Question Hi , I have a below log text ADS=gt sv caline 1 line 2c2 tv installationline 1<b>Samsung</b> New <b>SAMSUNG</b> TVStylish <b>LCD</b> Full <b>HDTV</b> with Quality. Find Karim&#39;s Design with <b>Samsung</b> TV<b>LN32A450 HDTV</b> on SaleGreat Deals on <b>Samsung Ln32a450</b>In Stock, Free Shipping, Order NowTop Rated HDTVs for 20081080p High DefinitionTelevisions -Owner Reviews. 2008 Buying Guide.a9adam-staging-adserver.amazon.com:80/srv/view I want to extract data in the below format. Could someone give me the pattern for this ? Thanks a lot in Advance. n="1" slot="s" visible_url="www.w9.com" provider="AdagioFeed" gt sv ca n="2" slot="s" visible_url="www.rice.edu" provider="AdagioFeed" c2 tv installation n="1" slot="a" visible_url="samsung.com/us" provider="GoogleFeed" <b>Samsung</b> New <b>SAMSUNG</b> TV n="2" slot="a" visible_url="www.AbesOfMaine.com" provider="GoogleFeed"> <b>LN32A450 HDTV</b> on Sale n="3" slot="a" visible_url="www.smart-review.com" provider="GoogleFeed"> Top Rated HDTVs for 2008 One more thing is some lines are like <b>Samsung</b> New <b>SAMSUNG</b> Will there be a way to eextract only "Samsung New SAMSUNG" out of this ? -- Posted via http://www.ruby-forum.com/.