title: MongoDB search start of field using regex
body: <p>I have tried a few things to get this working but it always fails. I have a working regex query on a field however want I am trying to achieve is searching on the start of the string. i.e. if you search edi you would get Edinburgh.</p>
  
  <p>I have the following regex query </p>
  
  <pre><code>Locations.find({name : { $regex: location + ".*", $options: 'ix'}}).fetch()
  </code></pre>
  
  <p>I read about using option m and ^ but it failed to retrieve any results.</p>