Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
[(\?|\&)]([^=]+)\=([^&#]+)
/
g

Description

Parses a URL query string (ignores anything after #) and returns parameters and values separately.

Submitted by Ross Tracy - 9 years ago