请教 php 正则写法

WBOY
Release: 2016-06-06 20:11:09
Original
898 people have browsed it

整页抓取了 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>
Copy after login

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

Related labels:
php
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!