Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?:[a-z]:)?(?:[\\\/][a-z0-9_. -]*)+$
/
gmi

Description

Détecte si une chaine est un chemin Windows ou Linux valide

Submitted by anonymous - 7 years ago (Last modified a year ago)