The expression string is as follows: & nbsp; & lt; tr & nbsp; & gt; & lt; td & nbsp; aligncenter & gt; 8. & lt; td & gt; & lt; a & nbsp; hrefleechdom_busentprise_detail.jsp? Expression for rule correction
The string is as follows:
8.
Beijing chengantang Pharmacy Co., Ltd. Gucheng branch
Beijing DB0700088
Li Bojun
In the ancient city branch of Beijing Wumei Commercial Group Co., Ltd., Gucheng Street, Shijingshan district, Beijing
Retail
-->
I want to extract the following string from the center: "Beijing chengantang Pharmacy Limited ancient city branch", "Beijing DB0700088", "Beijing Shijingshan District ancient city street Beijing Wumei Commercial Group Co., Ltd. ancient city branch"
What should I do?
------ Solution --------------------
$ Str = "8.
Beijing chengantang Pharmacy Co., Ltd.
City Branch
Beijing DB0700088
Li Bojun
In the ancient city branch of Beijing Wumei Commercial Group Co., Ltd., Gucheng Street, Shijingshan district, Beijing
Retail
--> ";
Preg_match_all ("#> ([^ <] +) <#", str_replace ("\ n", '', $ str), $ matches );
Print_r ($ matches );