Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^((http|https):)?(\\|\/)\3\S+\3\S+$
/
gm

Description

Simple UNC path validation. Both *nix and windows style.

Submitted by JoostAB - 9 months ago