RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Panamenian ID (cedula)
Expression
^(?:((?<prov>(?:[1-9]|10))(?<av>AV)?)|((?<tipo>(?:E|N|PE))+))-(?<tomo>\d{1,4})-(?<folio>\d{1,5})
Description
RegEx to match all panamenian identification numbers, including special cases as AV (people born before the actual cedula system), PE (panamanian born abroad), E (foreigner) and N (naturalized). The format of the cedula is: **[province code]-[tomo]-[folio]** And the format for special cases: **AV: [province code]AV-[tomo]-[folio] **PE: PE-[tomo]-[folio] **E: E-[tomo]-[folio] **N: N-[tomo]-[folio] ** province code: 1-10 tomo: 1-9999 folio: 1-99999
Matches
4-733-740, 10-45-748, 10AV-45-45, PE-465-4598, E-864-5464
Non-Matches
X-465-546, 4 - 754 - 6564, 9PE-465-321
Author Rating: Not yet rated. Ricardo Tribaldos
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials