title: Regular expression to match string pattern mention
body: <p>I am using java in which I have to check  that input string using regular expression.
   I am newbie to regular expression.</p>
  
  <p>I am entering input in the form .</p>
  
  <p>Following is sample data for which I need to write down regular expression.</p>
  
  <pre><code>LastName  FirstName
  
  Ab.CD           BC
  Ab-CFgD         Ab.CD
  F'b-CF gD       BC
  F'b-CF gD.      F.b-CF gD'D
  Fb-CF gD'D      BC
  F.b-CF gD'D     F'b-CF gD
  </code></pre>
  
  <p>Means It contain <code>dot(.), Hiphen(-), And single quotes(')</code> in between of LastName and First name.</p>
  
  <p>I have wrote down regexx only for "Lastname, first name".</p>
  
  <pre><code>"[a-zA-Z]+, *[a-zA-Z]+"
  </code></pre>
  
  <p>What would the regular expression be for find all strings mentioned above table</p>