title: Regex in MongoDB - match until dot
body: <p>I have string ( which may contains dots ) and I want to find in my collection other records which starts like given string, have dot right after this string and match it until another dot appears. </p>
  
  <p>So for example : string = "Test.Gummy" and I want to look for "Test.Gummy.Yummy", "Test.Gummy.Crummy", etc.</p>
  
  <p>I was trying with:</p>
  
  <pre><code>/{string}.*[^.]/ 
  
  /{string}(.*?)\./ 
  
  /{string}\.*[^.]/ 
  
  /{string}\.(.*?)\./ 
  </code></pre>
  
  <p>but that doesn't work..</p>