Regular Expressions 101

Community Patterns

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