Regular Expressions 101

Community Patterns

Machine readable passport number (second line)

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

Loading markdown...
Submitted by Leigh Garland - 8 years ago