R
Raju Alluri
Hi ,
I have a below log text
ADS=<GSP><ADS><AD n="1" slot="s" visible_url="www.w9.com"
url="http://xyz.com:80/srv/redirect/?key=vvMN3-AAA&s="
catid="all_tv" view_id="vPuC" provider="AdagioFeed"><LINE1>gt sv
ca</LINE1><LINE2>line 1 line 2</LINE2><LINE3 /></AD><AD n="2" slot="s"
visible_url="www.rice.edu"
url="http://xyz:80/srv/redirect/?key=kN3-AAB&s="
catid="cat_homeservices_install_tv" view_id="kR-AAB"
provider="AdagioFeed"><LINE1>c2 tv installation</LINE1><LINE2>line
1</LINE2><LINE3 /></AD><AD n="1" slot="a" visible_url="samsung.com/us"
url="http://xyz.com:80/srv/redirect/?info=ACoJO&awt=1&s="
provider="GoogleFeed"><LINE1><b>Samsung</b> New
<b>SAMSUNG</b> TV</LINE1><LINE2>Stylish
<b>LCD</b> Full <b>HDTV</b> with Quality. Find
Karim&#39;s Design with <b>Samsung</b> TV</LINE2><LINE3
/></AD><AD n="2" slot="a" visible_url="www.AbesOfMaine.com"
url="www.xyz.com:80/srv/redirect/?info=AGqQ__&awt=1&s="
provider="GoogleFeed"><LINE1><b>LN32A450 HDTV</b> on
Sale</LINE1><LINE2>Great Deals on <b>Samsung
Ln32a450</b></LINE2><LINE3>In Stock, Free Shipping, Order
Now</LINE3></AD><AD n="3" slot="a" visible_url="www.smart-review.com"
url="http://xyz.com:80/srv/redirect/?info=ANmELI_&awt=1&s="
provider="GoogleFeed"><LINE1>Top Rated HDTVs for
2008</LINE1><LINE2>1080p High DefinitionTelevisions
-</LINE2><LINE3>Owner Reviews. 2008 Buying
Guide.</LINE3></AD></ADS><VIEW_BASE_URL>a9adam-staging-adserver.amazon.com:80/srv/view</VIEW_BASE_URL><CATEGORIES>
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" <LINE1>gt
sv ca</LINE1>
n="2" slot="s" visible_url="www.rice.edu" provider="AdagioFeed"
<LINE1>c2 tv installation</LINE1>
n="1" slot="a" visible_url="samsung.com/us" provider="GoogleFeed"
<LINE1><b>Samsung</b> New <b>SAMSUNG</b>
TV</LINE1>
n="2" slot="a" visible_url="www.AbesOfMaine.com" provider="GoogleFeed">
<LINE1><b>LN32A450 HDTV</b> on Sale</LINE1>
n="3" slot="a" visible_url="www.smart-review.com" provider="GoogleFeed">
<LINE1>Top Rated HDTVs for 2008</LINE1>
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 ?
I have a below log text
ADS=<GSP><ADS><AD n="1" slot="s" visible_url="www.w9.com"
url="http://xyz.com:80/srv/redirect/?key=vvMN3-AAA&s="
catid="all_tv" view_id="vPuC" provider="AdagioFeed"><LINE1>gt sv
ca</LINE1><LINE2>line 1 line 2</LINE2><LINE3 /></AD><AD n="2" slot="s"
visible_url="www.rice.edu"
url="http://xyz:80/srv/redirect/?key=kN3-AAB&s="
catid="cat_homeservices_install_tv" view_id="kR-AAB"
provider="AdagioFeed"><LINE1>c2 tv installation</LINE1><LINE2>line
1</LINE2><LINE3 /></AD><AD n="1" slot="a" visible_url="samsung.com/us"
url="http://xyz.com:80/srv/redirect/?info=ACoJO&awt=1&s="
provider="GoogleFeed"><LINE1><b>Samsung</b> New
<b>SAMSUNG</b> TV</LINE1><LINE2>Stylish
<b>LCD</b> Full <b>HDTV</b> with Quality. Find
Karim&#39;s Design with <b>Samsung</b> TV</LINE2><LINE3
/></AD><AD n="2" slot="a" visible_url="www.AbesOfMaine.com"
url="www.xyz.com:80/srv/redirect/?info=AGqQ__&awt=1&s="
provider="GoogleFeed"><LINE1><b>LN32A450 HDTV</b> on
Sale</LINE1><LINE2>Great Deals on <b>Samsung
Ln32a450</b></LINE2><LINE3>In Stock, Free Shipping, Order
Now</LINE3></AD><AD n="3" slot="a" visible_url="www.smart-review.com"
url="http://xyz.com:80/srv/redirect/?info=ANmELI_&awt=1&s="
provider="GoogleFeed"><LINE1>Top Rated HDTVs for
2008</LINE1><LINE2>1080p High DefinitionTelevisions
-</LINE2><LINE3>Owner Reviews. 2008 Buying
Guide.</LINE3></AD></ADS><VIEW_BASE_URL>a9adam-staging-adserver.amazon.com:80/srv/view</VIEW_BASE_URL><CATEGORIES>
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" <LINE1>gt
sv ca</LINE1>
n="2" slot="s" visible_url="www.rice.edu" provider="AdagioFeed"
<LINE1>c2 tv installation</LINE1>
n="1" slot="a" visible_url="samsung.com/us" provider="GoogleFeed"
<LINE1><b>Samsung</b> New <b>SAMSUNG</b>
TV</LINE1>
n="2" slot="a" visible_url="www.AbesOfMaine.com" provider="GoogleFeed">
<LINE1><b>LN32A450 HDTV</b> on Sale</LINE1>
n="3" slot="a" visible_url="www.smart-review.com" provider="GoogleFeed">
<LINE1>Top Rated HDTVs for 2008</LINE1>
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 ?