Home > Backend Development > PHP Tutorial > 求正则表达式。匹配路径

求正则表达式。匹配路径

WBOY
Release: 2016-06-23 14:22:49
Original
1473 people have browsed it

正则 正则表达式 php 类

{dede:img text='SODIUM SILICATE PRODUCTION LINE' width='120' height='120'} /uploads/allimg/20130625/1-1306251312185.jpg {/dede:img}{dede:img text='30T/Day Fully automatic Sodium Silicate Furnace And Production Line(Horse Shoe Flame)' width='120' height='120'} /uploads/allimg/20130625/1-1306251313096.jpg {/dede:img}{dede:img text='SODIUM SILICATE DISSOLVE ROLLING TANK(CAPACITY: 3~3.5m3 / TANK)' width='120' height='120'} /uploads/allimg/20130625/1-1306251313557.jpg {/dede:img}{dede:img text='HOT- MELT ADHESIVE GRAIN PRODUCTION LINE' width='120' height='120'} /uploads/allimg/20130625/1-1306251314288.jpg {/dede:img}
Copy after login

匹配出所有的路径
/uploads/allimg/20130625/1-1306251314288.jpg
类似这样的


回复讨论(解决方案)

#/uploads\S+\.jpg#i

'/uploads/allimg/[0-9]{8}/[0-9\-]+\.jpg'
Copy after login
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