Home  >  Article  >  Backend Development  >  求一段正则表达式!解决思路

求一段正则表达式!解决思路

WBOY
WBOYOriginal
2016-06-13 12:33:33748browse

求一段正则表达式!


  • xxx

  • xxx

  • xxx



  • xxx

  • xxx

  • xxx



我想正则取得ID为b的UL里的每一个li里的内容,正则应该怎么写?

/
    .*?(.*?).*?/is  只能匹配到第一个li里的内容
    正则
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