Regular Expressions 101

Community Patterns

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

0

Regular Expression
ECMAScript (JavaScript)

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

Description

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

Submitted by anonymous - 7 years ago