Title |
Test
Find
URL parameter matching
|
Expression |
[?&]([^&#=]+)(?:=([^&#]*))? |
Description |
Matches parameters in an URL's query part. The parameters' name and value will be available as subsrting $1 and $2. $2 will be empty if the value is empty (e.g. "…¶m=&…") or undefined if there's no equals to sign (e.g. "…¶m&…"). |
Matches |
http://example.com/?param=value&emptyParam=&undefinedParam#anchor | https://www.google.com/imghp?hl=en&tab=wi | http://www.youtube.com/results?search_type=videos&search_query=Regular+Expressions&uni=3 |
Non-Matches |
http://example.com/#anchor | http://www.google.com/ | URL's with no GET parameters |
Author |
Rating:
Not yet rated.
AndreasSE93
|
Source |
|
Your Rating |
|