Community Patterns

Community Library Entry

0

Regular Expression
Created·2016-10-31 16:18
Flavor·ECMAScript (JavaScript)

/
(http[s]?:\/\/)?([^\/\s]+)([^?\s]*)([?].*)?
/
g
Open regex in editor

Description

When you need to get parts of your URL nicely.

Submitted by anonymous