Regular Expressions 101

Community Patterns

Community Library Entry

1

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

/
P<(?<country>\w{3})(?<lname>[A-Z]+)(<(?<lname2>[A-Z]+))?<<(?<fname>[A-Z]+)<(?<mname1>[A-Z]+)?<(?<mname2>[A-Z]+)?<(?<mname3>[A-Z]+)?
/
Open regex in editor

Description

Machine Readable passport rule for first line

Submitted by Igor Ferreira