title: Phrase search in string, making correct RegExp
body: <p>I will start straight, here's what I have:</p>
  
  <pre><code>var SResults = [];
  function ActivateSearch(s) {
      SResults = [];
  
      for (var key in Products){
          if ((' '+Products[key]['n']).search(new RegExp('\\b(('+s+')|('+s+')[s])\\b', 'gi')) &gt; 0) {
              SResults.push(key);
          }
      }
  }
  ActivateSearch('trampoline cover');
  </code></pre>
  
  <p>With this function I try to find word or phrases in Products[key]['n'], which is some kind of title ex. "Trampoline rain cover 6ft lenght plus extras".</p>
  
  <p>Now it has very basic working principle of looking for every single word of search phrase in mentioned title.</p>
  
  <p><strong>Problems:</strong></p>
  
  <p>If there is title trampoline rain cover, and search term is: trampoline cover - no matches.</p>
  
  <p><strong>Question:</strong></p>
  
  <p>How to change regex to match result described above?</p>