Regular Expressions 101

Community Patterns

1...56789...575

urn_path_splitting

0

Regular Expression
Python

r"
^(?: (?P<entity>[^:]+) (?::(?P<mode>[^:]+))? (?P<paths> (:(?P<path>[^:]+))+ )? ) $
"
gmx

Description

split a URN with one or more parts separated by colon

Submitted by anonymous - 2 years ago