Community Patterns

Community Library Entry

2

Regular Expression
Created·2016-12-12 04:12
Flavor·Golang

`
https?://w*[[:punct:]]?([^/]+)/?
`
g
Open regex in editor

Description

Matches subdomain, domain and top level in a field that contains a urls.

https://www.whatever.you.want ---> whatever.you.want

Submitted by anonymous