Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
([a-zA-Z0-9/<]){9}[0-9]([A-Za-z]){3}([0-9]){6}([0-9])([MmFf\<])([0-9])([0-9]){6}([a-zA-Z0-9/<]){14}([0-9]){2}
/
gm

Description

Second line of the machine readable passport, based on the excellent article here - http://www.highprogrammer.com/alan/numbers/mrp.html

Submitted by Leigh Garland - 9 years ago