Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(?:https?:)?(?:\/\/)?([^\/\?]+)
/
im

Description

getting the hostname from website

Submitted by anonymous - 3 years ago