Regular Expressions 101

Community Patterns

1

C#

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

Url regex that capture the domain of the URLs

1

Regular Expression
ECMAScript (JavaScript)

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

Description

Loading markdown...
Submitted by D<OS> - 8 years ago