Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-06-01 16:23
Flavor·ECMAScript (JavaScript)

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

Description

Extract the domain out of an url

Submitted by anubhava