Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-10-17 10:10
Flavor·Python

r"
^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)
"
igm
Open regex in editor

Description

From link

Get domain from url start with: http, https, www, or abc:abc.google.com

Submitted by anonymous