title: Regex for Words with Apostrophes (Java)
body: <p>I am trying to figure out the regex to match strings that contain only letters and apostrophes. If a string contains an apostrophe, I only want to match it if there is a letter on both sides of it. </p>
  
  <p>What I have so far is <code>[a-zA-Z]+('[a-zA-Z])?</code></p>
  
  <p>I want to match strings like:</p>
  
  <pre><code>a'a
  aa'a
  a'aaa
  </code></pre>
  
  <p>But not:</p>
  
  <pre><code>bb'
  'bb
  </code></pre>