Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
^((?P<scheme>[^:/?#]+):)?(//(?P<authority>[^/?#]*))?(?P<path>[^?#]*)(\?(?P<query_string>[^#]*))?(#(?P<fragment>.*))?
"

Description

Parses URIs according to RFC3936

Submitted by anonymous - 10 years ago