Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(https?:\/\/.*\.(?:png|jpg)\?w=[0-9]+&crop=[0-9])
/
gm

Description

This is a regex expression to match URL with 'w' (width) and 'crop' query vars

Submitted by Bhavik Kalpesh - 3 years ago