Home  >  Article  >  Backend Development  >  请教 php 正则写法

请教 php 正则写法

WBOY
WBOYOriginal
2016-06-06 20:11:09898browse

整页抓取了 http://www.zimuzu.tv/today 的数据,

应该怎么写正则表达式过滤内容,只保留文件名包含中文的条目呢?

utf8编码

回复内容:

整页抓取了 http://www.zimuzu.tv/today 的数据,

应该怎么写正则表达式过滤内容,只保留文件名包含中文的条目呢?

utf8编码

<code>/<a href="%5C%22%5C/resource%5C/%5Cd+%22" target="_blank">.*[\u4e00-\u9fa5]+.*/</a></code>

你根据你要的内容的格式去写对于的正则表达式,都这样干的。。。

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