Regular Expressions 101

Library entries

Matches all subdomains excluding www

Vote

1

Regular Expression
javascript

/
(?:(www\.))|(?:(?:^https:\/\/www\.)|(?:^https:\/\/)?)([\w]+){1}(?:\.[\w]+){2,}
/
ig

Description

Loading markdown...
Submitted by AurielleP - 4 years ago