title: How do I match accented characters with PHP preg?
body: <p>I’d like to give my users the option to not only fill in letters and numbers, but also “special” letters like the “á”, “é”, etc. However, I do not want them to be able to use symbols like “!”, “@”, "%”, etc.</p>
  
  <p>Is there a way to write a regex to accomplish this? (Preferably without specifying each special letter.)</p>
  
  <p>Now I have:</p>
  
  <pre><code>$reg = '/^[\w\-]*$/';
  </code></pre>