Regular Expressions 101

Community Patterns

10

entity

Python
no description available
Submitted by anonymous - 8 years ago

Get the root of a Windows path

0

Regular Expression
PCRE (PHP <7.3)

/
^([a-zA-Z]:(?=\\)|\\\\(?:[^\*:<>?\\\/|]+\\[^\*:<>?\\\/|]+|\?\\(?:[a-zA-Z]:(?=\\)|(?:UNC\\)?[^\*:<>?\\\/|]+\\[^\*:<>?\\\/|]+)))
/

Description

Loading markdown...
Submitted by J5lx - 9 years ago