Regular Expressions 101

Community Patterns

Regex to find MIME TYPES in URL

0

Regular Expression
PCRE (PHP <7.3)

/
<a(.*?)href=('|\")([^\>]*).(jpe?g|png|gif|mp4|webp|bmp)('|\")(.*?)>
/
ig

Description

no description available

Submitted by henjak - 5 years ago