Regular Expressions 101

Library entries

how I retrieve the domain without www or other cruft

Vote

0

Regular Expression
python

"
(?P<schema>.*://)?(?P<cedentials>.*@)?(?P<www>www\.)?(?P<domain>[\w\.]+)(?P<path_query>/?.*)?
"
g

Description

Loading markdown...
Submitted by bronsen - 8 years ago