title: Regex: how to match the last dot in a string
body: <p>I have two example filename strings:</p>
  
  <pre><code>jquery.ui.min.js
  jquery.ui.min.css
  </code></pre>
  
  <p>What regex can I use to only match the LAST dot?  I don't need anything else, just the final dot.</p>
  
  <p>A little more on what I'm doing.  I'm using PHP's preg_split() function to split the filename into an array.  The function deletes any matches and gives you an array with the elements between splits.  I'm trying to get it to split jquery.ui.min.js into an array that looks like this:</p>
  
  <pre><code>array[0] = jquery.ui.min
  array[1] = js
  </code></pre>