Php regular expression solution

Source: Internet
Author: User
Php regular expression solving & lt; div & nbsp; class = "line" & gt; & lt; ul & nbsp; id = "list" & nbsp; class = "cent" & nbsp; style = "list-style: none;" & gt; & lt; li & gt; & lt; span & nb php regular expression solving
 
  
  • AXXX, sensitive words
  • B philosophy and religion
  • C social science overview
  • D politics and law
  • E military
  • F economy
  • G culture, science, education, sports
  • H language and text
  • I literature
  • J art
  • K history and geography
  • N natural science overview
  • O mathematical science and chemistry
  • P astronomy, Earth science
  • Q Biological Science
  • R medicine and health
  • S agricultural science
  • T Industrial Technology
  • U Transportation
  • V Aviation and Aerospace
  • X Environmental Science and Security Science
  • Z comprehensive books



  • I want to get the content in span, links and content, but I don't know how to write this regular expression. I 've tried it for a long time, and I can't get it for many other methods. No. I went to the forum to ask for help.
    Data has been mentioned using the substr method, but I still want to know how to write the regular expression. I can directly split it into an array, which is much better than substr. . Php regular expression
    ------ Solution --------------------
    $ S = <
     

  • AXXX, sensitive words
  • B philosophy and religion
  • C social science overview
  • D politics and law
  • E military
  • F economy
  • G culture, science, education, sports
  • H language and text
  • I literature
  • J art
  • K history and geography
  • N natural science overview
  • O mathematical science and chemistry
  • P astronomy, Earth science
  • Q Biological Science
  • R medicine and health
  • S agricultural science
  • T Industrial Technology
  • U Transportation
  • V Aviation and Aerospace
  • X Environmental Science and Security Science
  • Z comprehensive books
  • 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.