title: Need to alter regex to allow for special characters
body: <p>I have the following bit of code in my htaccess that will allow a users ID to only be alphanumeric and include underscores and hyphens:</p>
  
  <pre><code>RewriteRule ^([A-Za-z0-9_-]+)$ profile.php?ID=$1 [QSA,L]
  </code></pre>
  
  <p>I've recently imported over 1000 usernames from a social networking platform that allowed usernames to contain special characters, but this new platform I've migrated the usernames into won't.</p>
  
  <p>How could I edit this regex to include the following special characters:</p>
  
  <pre><code>[ ] = , ? &amp; @ ~ { } + ' . * ! ™ ` (and spaces).
  </code></pre>
  
  <p>Any help would be much appreciated.</p>