Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Address
fr
#postal
#france
#french
#address

French Postal Code

Matches a French postal code — exactly 5 digits, starting with 0–9.

✓ French address forms✓ VAT region detection✓ Delivery zones
/
/
Safe
Test String
4 matches
00— '0' — literal character
[…]Character class […]— Matches any single character listed in this set
1-91-9— 1-9 — range from '1' to '9'
\d{3}digit— \d — digit (0–9) — repeated exactly 3 times · {3} — exactly 3 times
||— | — alternation: matches expression on left OR right
[…]Character class […]— Matches any single character listed in this set
1-81-8— 1-8 — range from '1' to '8'
\d{4}digit— \d — digit (0–9) — repeated exactly 4 times · {4} — exactly 4 times
||— | — alternation: matches expression on left OR right
99— '9' — literal character
[…]Character class […]— Matches any single character listed in this set
0-50-5— 0-5 — range from '0' to '5'
\d{3}digit— \d — digit (0–9) — repeated exactly 3 times · {3} — exactly 3 times
Pattern: 34 charsInput: 23 chars
100% client-side · private

✓ Valid Examples

  • 75001
  • 69001
  • 13001
  • 06000

✗ Invalid Examples

  • 00000
  • 99000
  • 1234
  • 750011

Usage & Integration

Validate French Postal Code natively in your backend or frontend without copying regex strings.

Node / Edge

import { validate } from '@regexto/validators';

validate('fr-postal', '...');

Python

from regexto_validators import validate

validate("fr-postal", "...")

Go

import "github.com/regex-to/validators-go"

valid, err := validators.Validate("fr-postal", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('fr-postal', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("fr-postal", "...").unwrap();