title: Ruby regex: remove first name, leave last name
body: <p>I am parsing a text and I want to ignore people's first names.</p>
  
  <p>Examples (cases):</p>
  
  <ul>
  <li>B.Obama => Obama</li>
  <li>B. Obama => Obama</li>
  <li>B . Obama => Obama</li>
  </ul>
  
  <p>I manage to write this working Ruby regex:</p>
  
  <pre><code>"B.Obama".gsub(/\p{L}+\.(\p{L}+)/, '\\1')
  </code></pre>
  
  <p>However, it solves only one case. Also, it doesn't check, if the first letter is capital.</p>
  
  <p>So, how should the regex, which combines all these cases, look like?</p>
  
  <p>Details: Ruby 1.92 and UTF-8 strings.</p>