Regular Expressions 101

Library entries

Get URL parameters

Vote

4

Regular Expression
pcre

/
(?:\?|\&)(?<key>[\w]+)(?:\=|\&?)(?<value>[\w+,.-]*)
/
g

Description

Loading markdown...
Submitted by anonymous - 7 years ago