Home > Backend Development > PHP Tutorial > 请教 php 正则写法

请教 php 正则写法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:11:09
Original
980 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
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template