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

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

WBOY
Release: 2016-06-13 11:39:55
Original
803 people have browsed it

求一段正则表达式!


  • xxx

  • xxx

  • xxx



  • xxx

  • xxx

  • xxx



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

/
    .*?(.*?).*?/is  只能匹配到第一个li里的内容
    正则
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template