Regular Expressions 101

Community Patterns

Parse URL and image file name

1

Regular Expression
PCRE (PHP <7.3)

/
^([a-z0-9_\/\-]+)\/([a-z0-9_\-]+[\.]{1}(jpg|jpeg|png|gif))$
/
i

Description

no description available

Submitted by anonymous - 8 years ago