Regular Expressions 101

Community Patterns

1

C#

ECMAScript (JavaScript)
no description available
Submitted by anonymous - 8 years ago

Url regex that capture the domain of the URL

1

Regular Expression
ECMAScript (JavaScript)

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

Description

Loading markdown...
Submitted by anonymous - 8 years ago