mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
16 lines
278 B
Python
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
|
|
)
|