title: Regex to Grab City, State, Zip
body: <p>Trying to make a regex that can handle input like either:</p>
  
  <ol>
  <li>Beverly Hills, CA</li>
  <li>Beverly Hills, CA 90210</li>
  </ol>
  
  <p>I have this: </p>
  
  <pre><code>^(.+)[,\\s]+(.+)\s+(\d{5})?$
  </code></pre>
  
  <p>It works for the #2 case, but not #1. If I change the <code>\s+</code> to <code>\s*</code> then it works for #1 but not #2. </p>
  
  <p>You can play around with it here: <a href="http://rubular.com/r/oqKBJ4r8cq" rel="nofollow">http://rubular.com/r/oqKBJ4r8cq</a></p>