Greetings. I use Simple HTML DOM for parsing online store products. The parameter "weight of goods" lies in this piece:
<div id="AddnInfo"> <p> <p><label>“R”Web#:</label> <span class="value">399014</span></p> <p><label>SKU:</label> <span class="value">0279D033</span></p> <p><label>Manufacturer #:</label> B5529</p> <p><label>Product Weight:</label>1.5 pounds</p> <p><label>Product Dimensions (in inches):</label>8.5 x 7.9 x 2.3</p> </p> </div> Moreover, as to the desired number, and after it there can be absolutely any amount of <p> ... </ p>, i.e., its place in the above list is not constant.
The question is - on what basis can you pull out Product Weight from this code?
/(\d|\.)+( )+pounds/- br3tp- teran