Regular Expressions: Positive and Negative Lookahead
5 characters long and have two consecutive digits. 78777 meets these two requirements.
/(?=\w{3,})(?=\D\d{2,})/ - This solution is a valid solution to this assignment.
So result should equal true. But that is not the case. It indicates here that it is false.
What is happening?
I think this is the right solution --> /(?=\w{3,})(?=\D*\d{2,})/
Kind regards, Fabian
Love this community