Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Finance
#iban
#bank
#finance
#international

IBAN

Matches an International Bank Account Number (IBAN) — 2-letter country code, 2 check digits, and up to 30 alphanumeric characters.

✓ International wire transfers✓ Bank account validation✓ Finance forms
/
/
Safe
Test String
3 matches
[…]{2}Character class […]— Matches any single character listed in this set — repeated exactly 2 times · {2} — exactly 2 times
A-ZA-Z— A-Z — range from 'A' to 'Z'
\d{2}digit— \d — digit (0–9) — repeated exactly 2 times · {2} — exactly 2 times
[…]{4}Character class […]— Matches any single character listed in this set — repeated exactly 4 times · {4} — exactly 4 times
A-ZA-Z— A-Z — range from 'A' to 'Z'
0-90-9— 0-9 — range from '0' to '9'
\d{7}digit— \d — digit (0–9) — repeated exactly 7 times · {7} — exactly 7 times
(…){0,16}Group #1— Capturing group — captures matched text for reuse or extraction — repeated between 0 and 16 times · {0,16} — between 0 and 16 times
[…]?Character class […]— Matches any single character listed in this set — repeated zero or one time (optional) · ? — zero or one time (optional)
Pattern: 46 charsInput: 74 chars
100% client-side · private

✓ Valid Examples

  • GB29NWBK60161331926819
  • DE89370400440532013000
  • PL61109010140000071219812874

✗ Invalid Examples

  • 123456789
  • GB29 NWBK
  • XX29NWBK60161331926819

Usage & Integration

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

Node / Edge

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

validate('iban', '...');

Python

from regexto_validators import validate

validate("iban", "...")

Go

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

valid, err := validators.Validate("iban", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('iban', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("iban", "...").unwrap();