How to extract onChange method's String parameters using Regex?
<p>I have <code>select</code> elements as below</p>

<pre><code>&lt;select name="selectid1" id="selectid1" onChange="script.selectChange(this,'tr');"&gt;.......&lt;/select&gt;
</code></pre>

<p>and </p>

<pre><code>&lt;select name="selectid2" id="selectid2" onChange="script.selectChange(this,'div');"&gt;.......&lt;/select&gt;
</code></pre>

<p>I want to extract the <code>selectChange</code> method's String paramter (the 2nd paramter) <code>tr</code> and <code>div</code> of the <code>onChange</code> attribute of both the select elemets using regular expresssion.</p>

<p>I can get the value of <code>onChange</code> using </p>

<pre><code>var selectid1 = $('#selectid1').attr('onChange'); //script.selectChange(this,'tr');
</code></pre>

<p>and</p>

<pre><code>var selectid2 = $('#selectid2').attr('onChange'); //script.selectChange(this,'div');
</code></pre>

<p>What regex should I use in order to get strings <code>'tr'</code> and <code>'div'</code> from the variables?</p>