Regular Expressions 101

Community Patterns

1...456

hostname - websites

0

Regular Expression
ECMAScript (JavaScript)

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

Description

getting the hostname from website

Submitted by anonymous - 3 years ago