Regex To Matche One Parameter In URL Query String

Category: URI

A regular expression to match one URL parameter in query strings. Can be used to filter requests on a specific parameter from the query string.

/&para(\=[^&]*)?(?=&|$)|^para(\=[^&]*)?(&|$)/

Matches:

  • https://regexpattern.com/query.php?query=true&para=123&bar=456

See Also:

Rate This Regfex
Sending
User Review
0 (0 votes)

Expression Flags

Flags Description
i Ignore case sensitive.
g Allows global search.
m Allows multiline search.
Category: URI