Delhi License Plate Format Validator
Delhi License Plate Format Validator
EasyStrings0% accepted
A parking management system in Delhi validates vehicle license plates. Each valid plate follows the format: DL (state code) followed by 2 digits (district), 2 digits (sequence), then 3 alphabetic characters. Validate incoming plate strings according to this strict format.
Approach
Given a license plate string, check if it follows the pattern DL-DD-DD-AAA (where D=digit, A=letter). Return 'Valid' if format matches, 'Invalid' otherwise.
Input
DL-01-AB-CDE
Output
Valid
More Strings problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards