Regular Expressions 101

Community Patterns

Match Safe Filename

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^[a-zA-Z0-9._-]+$
/
gm

Description

Submitted by anonymous - a month ago