Home  >  Article  >  Backend Development  >  新手求教,复杂的正表达式,求

新手求教,复杂的正表达式,求

WBOY
WBOYOriginal
2016-06-13 11:50:35718browse

新手求教,复杂的正表达式,求高手指点
"第\s?a4b561c25d9afb9ac8dc4d70affff41910d36329ec37a2cc24d42c7229b69747a-a4b561c25d9afb9ac8dc4d70affff419600d36329ec37a2cc24d42c7229b69747a\s?个\s?共有a4b561c25d9afb9ac8dc4d70affff419很多0d36329ec37a2cc24d42c7229b69747a个"

怎么匹配出 1  60 很多  

匹配了很久了,就是出不来,求高手指点
------解决方案--------------------

$str = "第\s?<b>1</b>-<b>60</b>\s?个\s?共有<b>很多</b>个";<br />$b = html_entity_decode($str);<br />preg_match_all("/\d+<br><font color='#FF8000'>------解决方案--------------------</font><br>很多/", $b, $match);<br />var_dump($match);

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn