title: Regular expression to remove anything but alphabets and '[single quote]
body: <p>How can I change this regular expression to remove everything from a string except alphabets and a '(single quote)? </p>
  
  <pre><code>pattern = /\b(ma?c)?([a-z]+)/ig;
  </code></pre>
  
  <ol>
  <li>this pattern removes unwanted spaces and capitalizes the first letter and turns the rest into lower case</li>
  <li>By alphabets I mean English letters a-z.</li>
  </ol>