Regular Expressions 101

Community Patterns

1...34567...293

extract domain with port

4

Regular Expression
ECMAScript (JavaScript)

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

Description

no description available

Submitted by yooresh - 8 years ago