Is there a way to allow a certain range of characters, but also exclude certain patterns of these allowed characters?
For example, let's say you're searching for a range of letters:
[A-Za-z]
but you don't want to match a certain pattern of these accepted characters, for example:
abc
I've been trying to craft an expression for a while and have had no luck. What I've been able to come up with was:
([A-Za-z][^abc])*
But this doesn't provide the behavior I'm looking for. Is there a way to search a range of characters and exclude certain patters of the accepted characters?
EDIT
To clarify, I was wondering if I could be able to still match the characters besides the unaccepted pattern. For example, if we had:
SomeTextabcMoreText
and abc is an illegal pattern, is there a way to match the legal characters and yield some result similar to:
SomeText
MoreText
abc?abcstr.replace(/abc/g, '\x00').match(whatever)?