title: jquery find exact string with no more or less
body: <p>I have some text from a breadcrumb which I am using to open menu items on a page. For example, say the <code>bctext = 'pasta'</code>.</p>
  
  <p>I want to target the word "pasta", but not say "yadda yadda yadda pasta". Only an instance of the single word "pasta" should match, or if <code>bctext</code> were a phrase, then it would only find the exact phrase.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>$('ul#accordion a:contains(' + bctext + ')')
  </code></pre>
  
  <p>But this finds "yadda yadda pasta", of course.</p>
  
  <p>I get the <code>bctext</code> with the following:</p>
  
  <pre><code>var bctext = $('#CategoryBreadcrumb ul li:last-child').prev().children().text();
  </code></pre>
  
  <p>Then, I edit the menu with the following:</p>
  
  <pre><code>$('ul#accordion a:contains(' + bctext + ')').parent()
                                              .addClass('special')
                                              .children('ul')
                                              .css('display','block'); 
  </code></pre>
  
  <p>Is what I'm going for possible? </p>