title: regex exact match multiple search words using jQuery
body: <p>I'm using jQuery. I have to check if a given list of words are in a paragraph or not. I want the exact match of a word or a phrase(whole word match).ie, if i search for 'be' in 'Be a bee', only one match is there. I have done like this.</p>
  
  <pre><code>var searchText="tool,media,be,team";
  var regexExactMatch = new RegExp('\^' + searchText.split(",").join("|") + '\$');
  if (regexExactMatch.test(item.Name))
  {
  //Found
  }
  </code></pre>
  
  <p>It is working for one search term, ie, without any comma (eg: media).
  But for comma separated search, it will break. </p>
  
  <p>How to do a exact match search for multiple search terms. I'm very very new to regex. Also I have to do the same search for integers and date (<code>MM/dd/yyyy</code>). Thanks in advance.</p>