Regular Expressions 101

Community Patterns

1...34567...901

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^\/{2}([\w|\d|_][^\/\.]*\/)+(\w|\d|_)[^\/\.]*\.(\w|\d)+$
/

Description

Checks if string is format like a network path and file (like //networkdrive/folder/folder/file.csv)

Submitted by anonymous - 3 years ago