Regex to match URL with specific query string param
<p>I am using this regex <code>.*\?(a\=([0-9]{3,4}))</code> to match any URLs with the query string ?a={{a random number here}}. It should only match a query string with 3 or 4 digits</p>

<p>E.g.</p>

<pre><code>http://www.test.com/test/test-test-test/?a=12
http://www.test.com/test-test/news/?a=734
http://www.test.com/test/?a=0987
http://www.test.com/test/test-test-test/?a=90235
</code></pre>

<p>My regex should match the second and third links as they contain a query string 3 or 4 digits.</p>

<p>I am using this tool <a href="http://www.regexpal.com/" rel="nofollow">http://www.regexpal.com/</a> and so far, it only highlights the second link.</p>