Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(https?:\/\/.*\.(?:png|jpg))
/
i

Description

If you have a string with a image URL

Submitted by Cavla - 8 years ago