$str = " Chinese Medicine name " Ai ye Aiye";
There are 1265 strings, as in the preceding code fragment.
There are two questions:
1. Collect wormwood leaves Aiye, my code is as follows, why not? The content is empty.
Preg_match ('/' TCM name <\/strong> ' (. *) <\/p>/ius ', $str, $match 1);
2. I want to collect the Aiye is the English part, other don't, how to write code.
Reply to discussion (solution)
$str = "" Chinese Medicine name "Ai ye Aiye
";p reg_match ('/" Chinese Medicine name <\/strong>" (. *) <\/p>/ius ', $str, $ MATCH1);p Rint_r ($match 1);
array ([0] = " Chinese Medicine name " AI yeh aiye
[1] = wormwood leaves Aiye) , why not?
$str = "" Chinese Medicine name "AI yeh Aiye
";p reg_match ('/" Chinese Medicine name <\/ Strong> ". * (\w+) <\/p>/ius ', $str, $match 1);p Rint_r ($match 1);
array ([0] = " Chinese Medicine name " AI yeh aiye
[1] = Aiye)
Thank you, it could be a coding problem,
can be captured