title: Regex to find Last name, first name or just first name
body: <p>trying to write a regex that will extract a first and last name or just a first name depending on the format.</p>
  
  <p>The two possible formats will be:</p>
  
  <pre><code>&lt;Last name&gt; / &lt;first name&gt;
  </code></pre>
  
  <p>Or:</p>
  
  <pre><code>&lt;first name&gt;
  </code></pre>
  
  <p>Is there a single regular expression that I can use to extract (with groups) the last name and first name if in the first format, or just the first name in the second format?</p>
  
  <p>Thanks!
  Kyle</p>