title: how to match everything except a particular pattern using regex
body: <p>After a half hour searching I failed. Now I am trying to match everything except the given word. </p>
  
  <p>I am trying to match <code>/user/*</code> except one word <code>login</code>.</p>
  
  <p>Examples:</p>
  
  <pre><code>/user/test  match!
  /user/loginno match!
  /user/login  not match!
  </code></pre>
  
  <p>My regex is：<code>^/user/(?!login)(.*)</code> but I can not make <code>/user/loginno</code> match ):</p>