Javascript regex to match a string that ends with some characters but not with a particular combinat

Posted by nimcap on Stack Overflow See other posts from Stack Overflow or by nimcap
Published on 2010-04-08T15:16:37Z Indexed on 2010/04/08 15:23 UTC
Read the original article Hit count: 177

Filed under:
|

Let's say using Javascript, I want to match a string that ends with [abcde] but not with abc.

So the regex should match xxxa, xxxbc, xxxabd but not xxxabc.

I am utterly confused.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about regex