---
id: "lb_postcode"
kind: "pattern"
status: "draft"
is_pii: true
categories: ["geo", "pii", "common"]
country: ["LB"]
langs: ["ar"]
quality: 68
url: "http://registry.apicrafter.io/datatype/lb_postcode"
---

# Lebanon postal code (`lb_postcode`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Postal code in Lebanon: four digits, or eight digits written as two groups of four with an optional space.

- Pattern of: `postindex`
- Personal data (PII): yes
- Categories: Geographic identifiers (geo), Personally identifiable information (pii), Common (common)
- Countries: Lebanon (LB)
- Languages: Arabic (ar)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:\d{4})(?: ?(?:\d{4}))?$
```

## Examples

- `2038 3054`
- `1107 2810`
- `1000`
- `2038 305` (invalid example) — too short

## Sources

- other: <https://chromium-i18n.appspot.com/ssl-address/data/LB>

## Quality

Score 68/100. Missing: authoritative source link, mapping (Wikidata, Schema.org, ...), translation, detector coverage.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/lb_postcode.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/LB/geo/lb_postcode.yaml>
