Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Identity
pl
#regon
#poland
#polish
#business

Polish REGON

Matches a Polish REGON (National Business Registry Number) — 9 digits for businesses and companies, 14 digits for local administrative units.

✓ Polish company registration✓ B2B invoicing✓ Government APIs✓ Company profile verification
/
/
Safe
Test String
3 matches
(?:…)Non-capturing group— Non-capturing group — groups without capturing (no index assigned)
\d{9}digit— \d — digit (0–9) — repeated exactly 9 times · {9} — exactly 9 times
||— | — alternation: matches expression on left OR right
\d{14}digit— \d — digit (0–9) — repeated exactly 14 times · {14} — exactly 14 times
Pattern: 16 charsInput: 34 chars
100% client-side · private

✓ Valid Examples

  • 123456785
  • 590096454
  • 12345678512347

✗ Invalid Examples

  • 12345678
  • 1234567890
  • 1234567891234
  • 123456785A

Usage & Integration

Validate Polish REGON natively in your backend or frontend without copying regex strings.

Node / Edge

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

validate('pl-regon', '...');

Python

from regexto_validators import validate

validate("pl-regon", "...")

Go

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

valid, err := validators.Validate("pl-regon", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('pl-regon', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("pl-regon", "...").unwrap();