8 ms·
https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_the_Netherlands#Current_series https://en.wikipedia.org/wiki/Vehicle_registration_plates_of... is c
by Someone 8y ago
https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_the_Netherlands#Current_series https://en.wikipedia.org/wiki/Vehicle_registration_plates_of... is complex, indeed, but I don’t see how formatting would be difficult. How do they store those, other than as the formatted string?
Parsing/validity checking, on the other hand, could be cumbersome.
- teraflop 8y agoI'm assuming "formatting" means "inserting hyphens in the correct place". Based on the examples in that Wikipedia page, it looks like the correct rule is to insert a hyphen between a letter and a digit that are adjacent, or in the middle of a group of 4 letters or 4 digits. But maybe there are other edge cases where that fails.