Regular Expressions 101

Library entries

Url regex that capture the domain of the URLs

Vote

1

Regular Expression
javascript

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

Description

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