Regular Expressions 101

Library entries

URL Extract base url (https://google.com) and domain (google.com) from URL String

Vote

0

Regular Expression
python

"
(?P<url>(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?(?P<domain>[^:\/?\n]+))/*.*
"
g

Description

Loading markdown...
Submitted by QuickRegEx - 3 months ago