Home > Backend Development > PHP Tutorial > 求一正则婚配规则写法

求一正则婚配规则写法

WBOY
Release: 2016-06-13 10:36:36
Original
928 people have browsed it

求一正则匹配规则写法
这个页面的 HTML代码中:http://www.vancouvergasprices.com/GasPriceSearch.aspx?typ=adv&fuel=A&srch=1&state=BC&area=Vancouver&site=Vancouver&tme_limit=24

要找到一个匹配



红色文字内容是不固定的。

我的规则不行:/
.*/siU 不知道错在哪

------解决方案--------------------
/
.*/siU
这样呢?

------解决方案--------------------
你要什么结果呢? 
/
.*/siU

------解决方案--------------------
探讨
这个页面的 HTML代码中:http://www.vancouvergasprices.com/GasPriceSearch.aspx?typ=adv&fuel=A&srch=1&state=BC&area=Vancouver&site=Vancouver&tme_limit=24

要找到一个匹配

[\s\S]*/iU

这样呢?
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