title: Simple regex: how do I say: "it's okay to have an " s " or " es " or " 's " at the end of the word, match those too."?
body: <p>I'm using Jquery(don't know if that's relevant), here's the regex:</p>
  
  <pre><code>var re = new RegExp('\\b' + a_filter + '\\b');
  </code></pre>
  
  <p>So it matches whole words in the variabe a_filter which has a bunch of words in it. Right now it will match 'wrench', but not 'wrenches'. It will match 'chair', but not 'chairs', it will match "john" but not "john's". I've been trying but I can't figure it out. </p>
  
  <p>Can someone please help me adjust my regex above to allow for these at the end of the word?</p>
  
  <p><code>s</code> <code>es</code> <code>'s</code> are what I want to allow at the end of a word match, so i don't have to include every single possible variation of each word. I think that's all the word endings that there really are that someone would type, if you know more, it would be great to get help, THANKS!</p>
  
  <p>EDIT: here's my jsfiddle, maybe I had <code>a_filter</code> mixed up with <code>filter_tags</code>, I think i'm doing it backwards, ugh. ???</p>
  
  <p><a href="http://jsfiddle.net/nicktheandroid/mMTsc/18/" rel="nofollow">http://jsfiddle.net/nicktheandroid/mMTsc/18/</a></p>