title: regular express : how to exclude multiple character groups?
body: <p>I have a set of urls :</p>
  <blockquote>
  <p>/products</p>
  <p>/categories</p>
  <p>/customers</p>
  </blockquote>
  <p>Now say a customers is named john, and I want to help john to reach his own account page with a shorter url:</p>
  <pre><code>before : /customers/john
  after  : /john
  </code></pre>
  <p>(suppose customer names are unique)</p>
  <p>I'm trying to figure out a proper regex dispatcher so all customers can have this feature :</p>
  <pre><code>/marry
  /james
  /tony-the-red-beard
  </code></pre>
  <p>here is what I got now(in PHP) :</p>
  <pre><code>'/^\/([^(products|categories|admin)].+)$/' =&gt; /customers/$1
  </code></pre>
  <p>This doesn't seem to work. Anybody can help me?</p>