次のように正規表現
文字列を検索します:
5cda007fa3fa61bc56f756b6fd0f90b96269d44d5f21d53d1807a889a526c11d8.b90dd5946f0946207856a8a37f441edf
b6c5a531a458a2e790c1fd6421739d1c4a3892ceda562370a93718ced0b3fe34北京城安堂薬局有限公司古城支店5db79b134e9f6b82c0b36e0489ee08edb90dd5946f0946207856a8a37f441edf
b6c5a531a458a2e790c1fd6421739d1c4a3892ceda562370a93718ced0b3fe34京DB07000885db79b134e9f6b82c0b36e0489ee08edb90dd5946f0946207856a8a37f441edf
b6c5a531a458a2e790c1fd6421739d1cリ・ボジュンb90dd5946f0946207856a8a37f441edf
b6c5a531a458a2e790c1fd6421739d1c北京市石景山区古城街、北京武マート商業集団有限公司古城支店内b90dd5946f0946207856a8a37f441edf
6269d44d5f21d53d1807a889a526c11d小売b90dd5946f0946207856a8a37f441edf
b6c5a531a458a2e790c1fd6421739d1c
-->
真ん中の文字列「Beijing Chengantang Pharmacy Co., Ltd. Gucheng Branch」、「Beijing DB0700088」、「Beijing Wumart Commercial Group Co., Ltd. Gucheng Branch on Gucheng Street, Shijingshan District, Beijing」
書き方は?
-----解決策---------
<?php<br /> <br /> $str = " <tr class=\"searchtabledark\"><td align=\"center\">8.</td><br /> <td><a href='leechdom_busentprise_detail.jsp?rule_id=odp_3_15247'>北京诚安堂药房有限公司古<br /> 城分店</a></td><br /> <td><a href='leechdom_busentprise_detail.jsp?rule_id=odp_3_15247'>京DB0700088</a></td><br /> <td>李伯军</td><br /> <td>北京市石景山区古城大街北京物美商业集团股份公司古城分店内</td><br /> <td align=\"center\">零售</td><br /> <td><br /> -->";<br /> <br /> preg_match_all("#>([^<]+)<#", str_replace("\n", '', $str), $matches);<br /> <br /> print_r($matches);<br />