Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?:[\/\\]{2})?([\w._$-]+)(?::\d+)?[\/\\](.+)$
/
gm

Description

A regex for parsing SMB shares

Submitted by Drav Sloan - 3 years ago