Answer the question
In order to leave comments, you need to log in
How to detect in regular expression without negative lookahead?
It is necessary to detect the license plates of all cars that were illegally
parked on the company's private property, except for the license plate number
of the general director's car, K333OT777.
Letters used in license plates:
A, B, E, K, M, N, O, R, C, T, Y, X (Upper case)
Digits used in license plates:
000 to 999
Regions of license plates to be detected :
77, 97, 99, 177, 197, 199, 777, 799
I started writing and it only got to this point.
([AVEKMNORSTUCH])(3([0-24-9]\d?|3[0-24-9]?)?|[0-24-9]\d{2})([AVEKMNORSTUCH]{2 })(7([0-689]\d?|7[0-689]?)?|9([0-9]\d?|9[0-8]?)?\d{1,2 })
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