Positive and Negative Lookahead - Regex

To get a good understanding of this excercise I suggest you have a look here:

Your current solution works for the excercise because there is no test on the “consecutive”-part of the excercise. However it would still return true if the numbers were not consecutive (e.g ban1a2). So your answer works but is not really correct.

1 Like