Help me write regular expression of songs. I haven't figured it out for a long time.

Source: Internet
Author: User
Help me write regular expression of 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:
    • Length: 25 in
  • 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

  • Reply to discussion (solution)

    Preg_match_all ('/

  • (?! /Siu', $ content, $ matches );

    Preg_match_all ('/

  • (?! /Siu', $ content, $ matches );

    Jordan, but it's okay. But is there a possibility that U is not needed.

    Preg_match_all ('/

  • (?! /Si', $ content, $ matches );

    Preg_match_all ('/

  • (?! /Si', $ content, $ matches );
    Niu, worthy of being 23rd.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.