In general, with the foregoing in the comments, the regular for 8/9 might look like this:
/^[袗袙袝袣袦袧袨袪小孝校啸]\d{3}(?<!000)[袗袙袝袣袦袧袨袪小孝校啸]{2}\d{2,3}$/ui
Well, yes, it is worth clarifying that this only works for private vehicle numbers.
There are also:
- transport / taxi:
/^[袗袙袝袣袦袧袨袪小孝校啸]{2}\d{3}(?<!000)\d{2,3}$/ui - trailers:
/^[袗袙袝袣袦袧袨袪小孝校啸]{2}\d{4}(?<!0000)\d{2,3}$/ui - Moto, c / x technique:
/^\d{4}(?<!0000)[袗袙袝袣袦袧袨袪小孝校啸]{2}\d{2,3}$/ui - transit:
/^[袗袙袝袣袦袧袨袪小孝校啸]{2}\d{3}(?<!000)[袗袙袝袣袦袧袨袪小孝校啸]\d{2,3}$/ui - exit:
/^孝[袗袙袝袣袦袧袨袪小孝校啸]{2}\d{3}(?<!000)\d{2,3}$/ui
There is still the Interior Ministry, diplomats, military, federal (without the region) ...
[0-9]{2}$with[0-9]{3}$or[0-9]{2,3}$(if both formats are required). Is it for PHP? Is it true that the first three digits should not be zeros? - Wiktor Stribi偶ew袗袙袝袣袦袧袨袪小孝校啸. - Fat-Zer