Regular Expressions 101

Community Patterns

Regex dat URL

0

Regular Expression
ECMAScript (JavaScript)

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

Description

When you need to get parts of your URL nicely.

Submitted by anonymous - 7 years ago