Regular Expressions 101

Library entries

Get the root of a Windows path

Vote

0

Regular Expression
pcre

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

Description

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