Home > Backend Development > PHP Tutorial > 请问关于采集规则的更改

请问关于采集规则的更改

WBOY
Release: 2016-06-13 12:14:19
Original
889 people have browsed it

请教关于采集规则的更改
我采集别的网站内容是20150123090  我想采集到我网站变成20150123-090    ([\d\-]+?)这是我原来的规则,请问怎么改?
------解决思路----------------------
20150123090  和 20150123-090 用   ([\d-]+?) 就可以了,不用改
如果 - 固定出现在倒数第4位则写作 (\d+-\d{3})

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