$content ='the north face size chart breathe deeply and slow your racing brain in the be calm tank.vaporwick technology sweeps moisture away from your skin for quick evaporation to leave you feeling spectacular.structured v-panel neckline.racerback styling allows arms complete range of movement.wide waistband with ruched side seams.eye-catching burnout design.logo at center back.sports bra not included.73% polyester, 27% cotton.machine wash cold, tumble dry low.imported.measurements:length: 25 inproduct measurements were taken using size xs. please note that measurements may vary by size.view this model measurements'; preg_match_all('/(^
什么正则表达式,可以把有
提取所有的li的内容.
写得我混乱了. 最后那个数组[1]应该大约是这样的.
matches[1][x]=breathe deeply and slow your racing brain in the be calm tank.
matches[1][x]=vaporwick technology sweeps moisture away from your skin for quick evaporation to leave you feeling spectacular.
matches[1][x]=structured v-panel neckline.
.....
matches[1][x]=sports bra not included.
matches[1][x]=73% polyester, 27% cotton.
...
简单说就是排除
里面以
回复讨论(解决方案) preg_match_all('/
(?!/siu',$content,$matches); preg_match_all('/
(?!/siu',$content,$matches);
乔丹,可是可以了.但是有可以不用u,也弄出来的可能性吗. preg_match_all('/
(?!/si',$content,$matches); preg_match_all('/
(?!/si',$content,$matches);
牛,不愧是23号.