E
E
Emil Gimranov2021-07-03 10:37:47
JavaScript
Emil Gimranov, 2021-07-03 10:37:47

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 })
60e0139321861490653121.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question