Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(http[s]?:\/\/)?([^\/\s]+)([^?\s]*)([?].*)?
/
g

Description

When you need to get parts of your URL nicely.

Submitted by anonymous - 8 years ago