title: Case insensitive search in Mongo
body: <p>I am using a case insensitive search in Mongo, something similar to <a href="https://stackoverflow.com/q/5500823/1028488">https://stackoverflow.com/q/5500823/1028488</a>.</p>
  <p>ie I am using a regex with options i. But I am having trouble restricting the regex to just that word, it performs more like a 'Like' in SQL</p>
  <p>eg: if I use query like
  <code>{&quot;SearchWord&quot; : { '$regex' : 'win', $options: '-i' }}</code>, it shows me results for win, window &amp; winter. How do i restrict it to jsut show win?</p>
  <p>I tried <code>/^win$/</code> but it's saying invalid JSON... Please suggest away.</p>
  <p>Thanks in advance</p>