title: Google Apps Script Regular Expression to get the last name of a person
body: <p>I am trying to write a regex to get the last name of a person.</p>
  
  <pre><code>var name = "My Name";
  var regExp = new RegExp("\s[a-z]||[A-Z]*");
  var lastName =  regExp(name); 
  Logger.log(lastName);
  </code></pre>
  
  <p>If I understand correctly <code>\s</code> should find the white space between <code>My</code> and <code>Name</code>, <code>[a-z]||[A-Z]</code> would get the next letter, then <code>*</code> would get the rest. I would appreciate a tip if anyone could help out.</p>