Sweden (SE)¶
National-ID patterns loaded when you pass countries=["SE"] (or "all"). Universal patterns always stay.
This is a detector, not a legal opinion
id-extract matches the shape of these numbers. A hit is not proof that the value was issued, is still valid, or that the cited statute applies to your document. Checksums, where present, only test the extra digit.
PERSONAL_ID_SE — Personnummer¶
The Swedish personal identity number. Ten or twelve digits with a hyphen before the last four.
| Package type | PERSONAL_ID_SE |
| Shape this package looks for | 6 or 8 digits + hyphen + 4 digits |
| Checksum | none in this package (Luhn is official) |
| Example (synthetic) | 811228-9874 |
Official sources
The example values are synthetic or well-known public test numbers. Do not treat them as issued identifiers.