Regular Expressions 101

Community Patterns

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 - 7 months ago