title: Java Regex to Validate Full Name allow only Spaces and Letters
body: <p>I want regex to validate for only letters and spaces. Basically this is to validate full name.  Ex: <strong>Mr Steve Collins or Steve Collins</strong>  I tried this regex.  "[a-zA-Z]+\.?" But didnt work. Can someone assist me please 
  p.s. I use Java. </p>
  
  <pre><code>public static boolean validateLetters(String txt) {
  
      String regx = "[a-zA-Z]+\\.?";
      Pattern pattern = Pattern.compile(regx,Pattern.CASE_INSENSITIVE);
      Matcher matcher = pattern.matcher(txt);
      return matcher.find();
  
  }
  </code></pre>