Jquery select all options that start with 'Urgent-'
<p>Based on the below markup, how (in JQuery) would i select the options that start with <code>Urgent-</code> or <code>Urgent -</code> ?</p>

<pre><code>&lt;select name="List1" id="list1"&gt;
&lt;option&gt;One&lt;/option&gt;
&lt;option&gt;Two&lt;/option&gt;
&lt;option&gt;urgent-Three&lt;/option&gt;
&lt;option&gt;Urgent-Four&lt;/option&gt;
&lt;option&gt;Urgent - Five&lt;/option&gt;
&lt;/select&gt; 
</code></pre>

<p>Based on the answer below I am using the following JQuery to wrap the matched elements in an <code>&lt;optgroup&gt;</code>.</p>

<pre><code>$opts = $("#list1 &gt; option").filter(function() {
    return /^Urgent\s?-/.test(this.innerHTML);
});

$opts.wrapAll('&lt;optgroup label="Urgent"&gt;'); 
</code></pre>

<p>I need to remove the matched text from the option text resulting in markup like this:-</p>

<pre><code>    &lt;select name="List1" id="list1"&gt;
    &lt;option&gt;One&lt;/option&gt;
    &lt;option&gt;Two&lt;/option&gt;
    &lt;optgroup label="Urgent"&gt;
    &lt;option&gt;Three&lt;/option&gt;
    &lt;option&gt;Four&lt;/option&gt;
    &lt;option&gt;Five&lt;/option&gt;
    &lt;/optgroup&gt;
    &lt;/select&gt; 
</code></pre>
