首页  >  文章  >  后端开发  >  求正则表达式。匹配路径

求正则表达式。匹配路径

WBOY
WBOY原创
2016-06-23 14:22:491445浏览

正则 正则表达式 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}

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

回复讨论(解决方案)

#/uploads\S+\.jpg#i

'/uploads/allimg/[0-9]{8}/[0-9\-]+\.jpg'

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn