title: Javascript regex to match a string that ends with some characters but not with a particular combination of those
body: <p>Let's say using Javascript, I want to match a string that ends with <code>[abcde]*</code> but not with <code>abc</code>.</p>
  
  <p>So the regex should match <code>xxxa</code>, <code>xxxbc</code>, <code>xxxabd</code> but not <code>xxxabc</code>.</p>
  
  <p>I am utterly confused.</p>
  
  <p><strong>Edit:</strong> I have to use regex for some reason, i cannot do something <code>if (str.endsWith("abc"))</code></p>