Regular Expressions 101

Community Library

Community Library Entry

0

Regular ExpressionOpen Workspace

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

Description
Created·2021-05-12 15:32
Type·Match
Flavor·Python

For extracting the base URL and domain from a URL String

Submitted by QuickRegEx
Open Workspace