Regular Expressions 101

Community Patterns

Vehicle Identification Number

1

Regular Expression
ECMAScript (JavaScript)

/
[\_\WQOIqoi]+
/
gm

Description

In Vehicle Identification Number used by motor vehicle manufacturers, the letters I, O and Q are omitted for their similarity to 1 or 0.

Submitted by nguyenlamzx@outlook.com - 8 years ago