Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^https?:\/\/(www\.)?
/
g

Description

Remove leading "http://" or "https://" and optionally a "www." for look up

Submitted by anonymous - 8 years ago