regex help
Posted: Fri Apr 20, 2012 4:27 am
Ive tried for last three hours to get this one. :0)
I *am* able to get a regex to work with this:
on the xml code below, but I tried this (and about 60 other iterations):
to get the entire value of the text between the <item> and </item> tags.
Is there not a simple way to say, look for the <item> tag and then get everything until you see the </item> tag?
Any suggestion would really be appreciated. Thanks very much! :0)
I *am* able to get a regex to work with this:
Code: Select all
find-all {<title>([^.]+)<\/title>}
Code: Select all
find-all {<item>([^.]+)<\/item>}
Is there not a simple way to say, look for the <item> tag and then get everything until you see the </item> tag?
Any suggestion would really be appreciated. Thanks very much! :0)
Code: Select all
<item><title>Very Cute Solar Powered Plant Decoration Flower Random Color </title><description><![CDATA[<table border='0' cellpadding='8'> <tr><td> <a href= 'http://rover.ebay.com/rover/1/711-53200-19255-0/1?ff3=2&toolid=10039&campid=5337070286&item=120898233743&vectorid=229466&lgeo=1' target='_blank'><img src='http://thumbs4.ebaystatic.com/pict/1208982337434040_1.jpg' border='0'/></a></td><td><strong>$1.99</strong><br>End Date: Friday May-18-2012 18:43:55 PDT<br>Buy It Now for only: $1.99<br><a href='http://rover.ebay.com/rover/1/711-53200-19255-0/1?ff3=2&toolid=10039&campid=5337070286&item=120898233743&vectorid=229466&lgeo=1' target='_blank'>Buy It Now</a> | <a href='http://rover.ebay.com/rover/1/711-53200-19255-0/1?ff3=4&toolid=10039&campid=5337070286&vectorid=229466&lgeo=1&mpre=http%3A%2F%2Fcgi1.ebay.com%2Fws%2FeBayISAPI.dll%3FMfcISAPICommand%3DMakeTrack%26item%3D120898233743%26ssPageName%3DRSS%3AB%3ASRCH%3AUS%3A104' target='_blank'>Add to watch list</a></td></tr> </table>]]></description><pubDate>18 Apr 2012 18:53:18 GMT-07:00</pubDate><guid>120898233743</guid><link>http://rover.ebay.com/rover/1/711-53200-19255-0/1?ff3=2&toolid=10039&campid=5337070286&item=120898233743&vectorid=229466&lgeo=1</link><e:BidCount></e:BidCount><e:CurrentPrice>1.99</e:CurrentPrice><e:ListingType>FixedPrice</e:ListingType><e:BuyItNowPrice></e:BuyItNowPrice><e:ListingEndTime>2012-05-19T01:43:55.000Z</e:ListingEndTime><e:ListOrder>120898233743</e:ListOrder><e:PaymentMethod>PayPal</e:PaymentMethod></item>