Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-03-30 11:11
Flavor·PCRE (Legacy)

/
(?<pnum>[\dA-Z]{9}).(?<nat>\w{3})(?<yob>\d{2})(?<mob>\d{2})(?<dob>\d{2}).(?<sex>M|F|<{1})(?<yoe>\d{2})(?<moe>\d{2})(?<doe>\d{2}).(?<prnum>[]\d|<A-Z]{16})
/
Open regex in editor

Description

Machine readable passport rule for the second line

Submitted by Igor Ferreira