title: Regex to find last occurrence of pattern in a string
body: <p>My string being of the form:</p>
  
  <pre><code>"as.asd.sd fdsfs. dfsd  d.sdfsd. sdfsdf sd   .COM"
  </code></pre>
  
  <p>I only want to match against the last segment of whitespace before the last period(.)</p>
  
  <p>So far I am able to capture whitespace but not the <em>very</em> last occurrence using:</p>
  
  <pre><code>\s+(?=\.\w)
  </code></pre>
  
  <p>How can I make it less greedy?</p>