Regular Expressions 101

Community Patterns

original regex for cache images

0

Regular Expression
PCRE (PHP <7.3)

/
^(([a-z]+)_([0-9]+)(_([0-9]+))*)\-([0-9]+)x([0-9]+)\-([0-9]{1})([0-9abcdef]{6}){0,1}\.(jpg|gif|png)
/

Description

this is the starting regex for breaking up the cache image url into it's parts

Submitted by anonymous - 7 years ago