jQuery match from value string
<p>I trying to match a variable from an url. This works fine if I use the expression directly in the match method. However I am having problem getting it to work if the expression is inside a string.</p>

<blockquote>
  <p>var match = '/(page_art_list=\d+)/';</p>
</blockquote>

<p>match contains the value..</p>

<pre><code>var pattern = "/("+paramName+"=\d+)/";
var match = this.href.match(pattern);
</code></pre>

<p>match is null</p>

<p>I have double checked that both examples produce exactly the same string. </p>

<p>Any thoughts?</p>

<p>Best regards.
Asbjørn Morell          </p>
