Regular Expressions 101

Library entries

extract domain with port

Vote

4

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by yooresh - 6 years ago