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 companies, 14 digits for local units.

Polish company registrationB2B invoicingGovernment APIs
/
/
Safe
Test String
2 matches
(…)Group #1Capturing group — captures matched text for reuse or extraction
\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: 14 charsInput: 24 chars
100% client-side · private

Valid Examples

  • 123456785
  • 12345678512347

Invalid Examples

  • 12345678
  • 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();