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