Regular Expressions 101

Library entries

Match domain part in Http(s) URLs

Vote

2

Regular Expression
pcre

/
^http[s]{0,1}:\/\/(.*?)(?:[\/?&#]|$)
/
gmi

Description

Loading markdown...
Submitted by Nilratan - 7 years ago