Category & nbsp; classpopup-help me write regular expression songs. I haven't figured it out for a long time.
$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:
- Product measurements were taken using size XS. Please note that measurements may vary by size.
- View This Model Measurements
';
preg_match_all('/
(^/si',$content,$matches);
print_r($matches);
What regular expressions can include
Extract all contents of li.
I am confused. The last array [1] should be like this.
Matches [1] [x] = Breathe deeply and slow your racing brain 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 supported ded.
Matches [1] [x] = 73% polyester, 27% cotton.
...
Simply put, it is to exclude
------ Solution --------------------
Preg_match_all ('/
(?! /Siu', $ content, $ matches );