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