title: Extract text before first comma with regex
body: <p>I want to extract text before first comma (first and last name) from strings like:</p>
  
  <pre><code>John Smith, RN, BSN, MS
  Thom Nev, MD
  Foo Bar, MD,RN
  </code></pre>
  
  <p>I tried with regex:</p>
  
  <pre><code>(.*)\s(.*),\s
  </code></pre>
  
  <p>but this doesn't work for all situations.
  How to achieve this?</p>