Files
openide/python/testData/regexp/verboseEscapedHash.py
2013-01-30 18:53:01 +01:00

16 lines
278 B
Python

import re
urlparts = re.compile(
r"""
(?P<scheme>http|https)
://
(?P<netloc>(?:(?!/|\?|\#)\S)*)
/?
(?P<path>(?:(?!\?|\#)\S)*)
\??
(?P<query>(?:(?!\#)\S)*)
\#?
(?P<fragment>[\S]*)
""", re.VERBOSE
)