I am using this regex .*\\?(a\\=([0-9]{3,4})) to match any URLs with the query string ?a={{a random number here}}. It should only match a query string with 3 or 4 d
.*\\?(a\\=([0-9]{3,4}))
a=\d{3,4}$
Regex101 Demo and Explanation