I am working on validating UK driving license using regex. But the regex does not match accurately.
example, MORGA753116SM9IJ
is a valid driving license and it matches but if I append some random characters like 123abc
to it MORGA753116SM9IJ123abc
, then it matches till '123abc' which is wrong.