Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

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

Description

Returns matches of parameter and value separately from a URL. Ignores anything after a #.

Submitted by Ross Tracy - 9 years ago