title: $regex to find whole words, mongodb
body: <p>Find items containing a whole word.</p>
  
  <pre><code>const queryparam = 'microsoft';
  
  mongoose.model('tag').find({name: { $regex:  new RegExp("\w"+queryparam+"\w" ), '$options': 'i' }});
  
  // tag collection
  
      [
        {
           name: 'Microsoft word" // this should be returned by query
        },
        {
           name: 'Microsoft-word" // this should not be returned by query
        }
      ]
  </code></pre>
  
  <p>It's not working.</p>