Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Address
de
#plz
#postal
#germany
#german

German Postal Code (PLZ)

Matches a German postal code (Postleitzahl / PLZ) — exactly 5 digits.

German address formsDelivery validationTax region determination
/
/
Safe
Test String
4 matches
\d{5}digit\d — digit (0–9) — repeated exactly 5 times · {5} — exactly 5 times
Pattern: 5 charsInput: 23 chars
100% client-side · private

Valid Examples

  • 10115
  • 80331
  • 20095
  • 01067

Invalid Examples

  • 1234
  • 123456
  • A1234

Usage & Integration

Validate German Postal Code (PLZ) natively in your backend or frontend without copying regex strings.

Node / Edge

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

validate('de-plz', '...');

Python

from regexto_validators import validate

validate("de-plz", "...")

Go

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

valid, err := validators.Validate("de-plz", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('de-plz', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("de-plz", "...").unwrap();