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

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

WBOY
WBOYOriginal
2016-06-23 14:01:02883browse

"第\s?a4b561c25d9afb9ac8dc4d70affff41910d36329ec37a2cc24d42c7229b69747a-a4b561c25d9afb9ac8dc4d70affff419600d36329ec37a2cc24d42c7229b69747a\s?个\s?共有a4b561c25d9afb9ac8dc4d70affff419很多0d36329ec37a2cc24d42c7229b69747a个"

怎么匹配出 1  60 很多  

匹配了很久了,就是出不来,求高手指点


回复讨论(解决方案)

$str = "第\s?<b>1</b>-<b>60</b>\s?个\s?共有<b>很多</b>个";$b = html_entity_decode($str);preg_match_all("/\d+|很多/", $b, $match);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
Previous article:php中<<<是什么符号Next article:向xuzuning请教