Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Identity
en-AU
#abn
#australia
#australian
#business

Australian ABN

Matches an Australian Business Number (ABN) — 11 digits, optionally space-separated in groups.

Australian business formsGST invoicingTax reporting
/
/
Safe
Test String
3 matches
\d{2}digit\d — digit (0–9) — repeated exactly 2 times · {2} — exactly 2 times
\s?space\s — whitespace (space, tab, newline…) — repeated zero or one time (optional) · ? — zero or one time (optional)
\d{3}digit\d — digit (0–9) — repeated exactly 3 times · {3} — exactly 3 times
\s?space\s — whitespace (space, tab, newline…) — repeated zero or one time (optional) · ? — zero or one time (optional)
\d{3}digit\d — digit (0–9) — repeated exactly 3 times · {3} — exactly 3 times
\s?space\s — whitespace (space, tab, newline…) — repeated zero or one time (optional) · ? — zero or one time (optional)
\d{3}digit\d — digit (0–9) — repeated exactly 3 times · {3} — exactly 3 times
Pattern: 29 charsInput: 41 chars
100% client-side · private

Valid Examples

  • 51 824 753 556
  • 51824753556
  • 12 345 678 901

Invalid Examples

  • 51 824 753
  • 518247535561
  • AB 824 753 556

Usage & Integration

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

Node / Edge

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

validate('au-abn', '...');

Python

from regexto_validators import validate

validate("au-abn", "...")

Go

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

valid, err := validators.Validate("au-abn", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('au-abn', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("au-abn", "...").unwrap();