Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-11-26 22:37
Flavor·ECMAScript (JavaScript)

/
(?:http|https):\/\/((?:[\w-]+)(?:\.[\w-]+)+)(?:[\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?
/
gm
Open regex in editor

Description

https://developer.mozilla.org/es/ Url regex that capture the domain of the URL

Submitted by anonymous