Answer the question
In order to leave comments, you need to log in
How to write a RegExp to capture all letters but exclude some words?
Broke my whole head.
The regular is needed for the route, before that it was like this: [-a-z]+
- just capture any text with hyphens
Now we need to be able to exclude some words, for example, create.
I googled this thing: ^(?>(?!create).)*$, but I can't figure out how to connect it with the first option.
Help, please, who knows how to play regular games
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question