Hi
If I wanted to pull the names and prices of products costing more than $X from an amazon.com search results page, what "text to find" or would I use? Would that be a regex? I see Jag and Thomas using all sorts of complex looking stuff when parsing text....is there a library where I can see what it all means?
Here is the code from the page.
Cuisinart
</span></div>
<span class="tiny"><span style="white-space:no-wrap;"><span class="asinReviewsSummary" name="B0000A1ZMU">
<a href="http://www.amazon.com/Cuisinart-DFP-3-Handy-3-Cup-Processor/product-reviews/B0000A1ZMU/ref=pd_ts_k_1_cm_cr_acr_img?ie=UTF8&showViewpoints=1"><img src="http://g-ecx.images-amazon.com/images/G/01/x-locale/common/customer-reviews/ratings/stars-4-5._V25749327_.gif" width="55" alt="4.5 out of 5 stars" align="absbottom" height="12" border="0" /></a> </span>(<a href="http://www.amazon.com/Cuisinart-DFP-3-Handy-3-Cup-Processor/product-reviews/B0000A1ZMU/ref=pd_ts_k_1_cm_cr_acr_txt?ie=UTF8&showViewpoints=1">81 customer reviews</a>)</span></span>
<span class="tiny"> | <a href="http://www.amazon.com/gp/forum/cd/forum.html/ref=cm_cd_pd_ts_fp?ie=UTF8&cdForum=FxFEB9PBNUVWC7&asin=B0000A1ZMU">3 customer discussions</a></span><br />
In Stock<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="priceBox">
<tr>
<td width="45%">
<p class="priceBlock"><strong>List Price: </strong> <span class="listprice">$110.00</span> </p><p class="priceBlock"><strong>Price: </strong> <span class="price"><b>$59.99</b></span> </p><p class="priceBlock"><strong>You Save: </strong> <span class="price">$50.01 (45%)</span></p> <p class="priceBlock"><a href="http://www.amazon.com/gp/offer-listing/B0000A1ZMU/ref=pd_ts_k_1?ie=UTF8&condition=all">11 used & new</a> from <span class="price">$56.99</span>
</p>


As far as I am concerned, the best tool when it comes to regular expressions is called: Expresso. This little, free tool is as powerful as it gets:
- It contains a regular expression tutorial that will help you get started
- It has a small regular expression library allowing you to choose from common regular expressions
- It includes a Regex Analyzer that "translates" the regular expression in actual words of the english language
- It allows you to insert specific parts of the regular expression by clicking a button (no typing at all)
- It also lets you test the results that a specific regular expression will produce when applied to a specific test.
Notice, that all this time that I have been using it to test regex before inserting them into WinAutomation, the results produced by Expresso have always been the same with the results that have been generated by WinAutomation's "Parse Text", "Replace Text" and "Split Text" actions.
Error is not blindness, error is cowardice
Error is not blindness, error is cowardice