jQuery select based on text
<p>I need to select an element based on its text in jQuery.</p>

<p>For instance:</p>

<pre><code>&lt;span&gt;this text&lt;/span&gt;
</code></pre>

<p>I know I can use .contains() to select based on text, but it's not exclusive.</p>

<p>I don't want to select:</p>

<pre><code>&lt;span&gt;this text and that text&lt;/span&gt;
</code></pre>

<p>I want to select the element if it's the only text of the element.</p>

<p>Aside from using regex, how do I do this with jQuery selectors?</p>

<p>Thanks.</p>
