Pattern matching Question


#1

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.<VIEW_BASE_URL>a9adam-staging-adserver.amazon.com:80/srv/view</VIEW_BASE_URL>

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 ?


#2

Hi Raju

If you don’t have a solution yet, please post the original log text to
pastebin.com or something like that, so that I can see where line breaks
are.

R.


#3

Rüdiger Brahns wrote:

Hi Raju

If you don’t have a solution yet, please post the original log text to
pastebin.com or something like that, so that I can see where line breaks
are.

R.

Hi Rüdiger
I got a solution for this. Thank you.

-Raju