PHP采集天猫商品列表,正则表达式匹配店铺名称和商品ID
preg_match_all("/data-id="(d{1,})/",$v,$out); preg_match_all("/<a class="productShop-name".[^>]*>s*((<span class=H>)?(.[^<]*)(</span>)?(.[^<]*))</a>/",$v,$out1);