Indian Vehicle Registration Number Regular Expression

Category: Strings

A regular expression to match and validate Vehicle Registration Numbers in India.

/^([A-Z|a-z]{2}\s{1}\d{2}\s{1}[A-Z|a-z]{1,2}\s{1}\d{1,4})?([A-Z|a-z]{3}\s{1}\d{1,4})?$/

Matches:

  • KA 08 J 9192
  • UP 19 D 0343
  • HR 26 TC 7174

Non-matches:

  • KA 08 J 919
  • UPD 19 D 0343
  • 199 CC 999

See Also:

Rate This Regex
Sending
User Review
0 (0 votes)

Expression Flags

Flags Description
i Ignore case sensitive.
g Allows global search.
m Allows multiline search.