Regular Expressions 101

Community Patterns

1...45678...400

Image URL with 'w' and 'crop' query var

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 - 2 years ago