Regular reading is problematic in Chinese. (if it is difficult for the teacher to join the project, he will not be able to evaluate the scholarship. thank you)
$ Str = "【Chinese Medicine name] Aiye";
As shown in the preceding code snippet, there are a total of 1265 strings.
I have two questions:
1. the Iye aiye is collected. my code is as follows. why not? The content is empty.
Preg_match ('/【Chinese Medicine name <\/strong>] (. *) <\/p>/iUs ', $ str, $ match1 );
2. I want to collect the aiye in English. I want to write code for others.
Reply to discussion (solution)
$ Str = "【Chinese Medicine name] Aiye"; Preg_match ('/【Chinese Medicine name <\/strong>] (. *) <\/p>/iUs ', $ str, $ mattings); print_r ($ mattings ); Array ([0] => 【Chinese Medicine name] Aiye[1] => aiye)
Why not?
$ Str = "【Chinese Medicine name] Aiye"; Preg_match ('/【Chinese Medicine name <\/strong>]. * (\ w +) <\/p>/iUs ', $ str, $ match1); print_r ($ match1 ); Array ([0] => 【Chinese Medicine name] Aiye[1] => aiye)
Thank you very much. It may be the encoding problem,
Yes