Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?:^((?:(?:\\\\)|(?:\\\\\?\\UNC\\))(?:(?:[^@\\\/]+(?:\:[^@]+@)[^@\\\/\?]+)|(?:[^\\\/?]+)))\\([^\\\/]+)(?:[\\\/]([^?\:]*))?$)
"
gm

Description

\[[domain;]username[:password]@]hostname\share[/]path

Submitted by anonymous - 6 years ago