title: Find last occurrence of comma in a string using regex in javascript
body: <p>I have a string which represents an address in Javascript, say, "Some address, city, postcode".</p>
  
  <p>I am trying to get the 'postcode' part out. </p>
  
  <p>I want to use the split method for this. I just want to know a regex expression that will find the last occurrence of ' , ' in my string.</p>
  
  <p>I have tried writing expressions such as     </p>
  
  <pre><code>address.split("/\,(?=[^,]*$)/"); 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>address.split(",(?=[^,]*$)");
  </code></pre>
  
  <p>But these don't seem to work. Help!</p>