Does jQuery have a more restrictive :contains() - an exact match version?
<p>I have a list with values 1 thru 16, as</p>

<pre><code> &lt;li&gt;1&lt;/li&gt;
 &lt;li&gt;2&lt;/li&gt; ....
 &lt;li&gt;10&lt;/li&gt;
</code></pre>

<p>And I want to add a class based on the text value.  I tried this</p>

<pre><code>$('#IDul_WeekSelector li:contains("1")').addClass('active');
</code></pre>

<p>The problem is that I get hits on both 1 and 10. Is there an exact match version of this? I looked a the other content filters available and I didn't see one. A regular expression might look like this: <code>/^1$/</code></p>