title: javascript: regex must contain a string, but it also not contain a certain string
body: <p>I want to have a regex which must contain a string and not contain another string.</p>
  
  <p>For example: 
  The urls are: </p>
  
  <p><code>/news/create</code>, </p>
  
  <p><code>/news/5a40778e82264f0d689fc345</code></p>
  
  <p><code>/news/5a40824382264f0d689fc347</code></p>
  
  <p><code>/news/list</code></p>
  
  <p><code>/files</code></p>
  
  <p><code>/files/43er778e82264fref32fcre4</code></p>
  
  <p><strong>I want to get only:</strong> </p>
  
  <p><code>/news/5a40778e82264f0d689fc345</code> </p>
  
  <p>and </p>
  
  <p><code>/news/5a40824382264f0d689fc347</code></p>
  
  <p>It means that the url must contains <code>/news</code>, but <strong>it should not</strong> <code>/news/create</code> or <code>/news/list</code>. Just need news detail like <code>/news/:id</code>.
  Other urls like: <code>/files/xxx</code> <strong>should not</strong> return as well.</p>
  
  <p>How can I get the regex obtain like that?</p>
  
  <p>Thank in advance.</p>