Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Identity
ru
#inn
#russia
#russian
#tax

Russian INN (ИНН)

Matches a Russian taxpayer identification number (ИНН) — 10 digits for organisations, 12 digits for individuals.

Russian government integrationTax reportingBusiness registration
/
/
Safe
Test String
2 matches
(…)Group #1Capturing group — captures matched text for reuse or extraction
\d{10}digit\d — digit (0–9) — repeated exactly 10 times · {10} — exactly 10 times
||| — alternation: matches expression on left OR right
\d{12}digit\d — digit (0–9) — repeated exactly 12 times · {12} — exactly 12 times
Pattern: 15 charsInput: 23 chars
100% client-side · private

Valid Examples

  • 7707083893
  • 500100732259

Invalid Examples

  • 770708389
  • 77070838930
  • 770708389A

Usage & Integration

Validate Russian INN (ИНН) natively in your backend or frontend without copying regex strings.

Node / Edge

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

validate('ru-inn', '...');

Python

from regexto_validators import validate

validate("ru-inn", "...")

Go

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

valid, err := validators.Validate("ru-inn", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('ru-inn', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("ru-inn", "...").unwrap();