Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?:[.]json|[.]pdf)$
/
g

Description

Used to validate the results obtained from path.extname()

Submitted by dmtinkdev - 2 years ago