Australian Branch Routing Code
Identifies Australian Bank State Branch (BSB) routing codes in 3-digit dash 3-digit or continuous 6-digit formats. Supports space separator. Requires corroborative financial-institution keywords.
- Type
- regex
- Engine
- universal
- Confidence
- low
- Confidence justification
- Low confidence: 6-digit numbers are ubiquitous. Financial-institution keywords are essential.
- Jurisdictions
- au
- Regulations
- Anti-Money Laundering and Counter-Terrorism Financing Act 2006 (Cth), Information Privacy Act 2009 (Qld), NDB Scheme (Cth), Privacy Act 1988 (Cth)
- Frameworks
- ISO 27001, ISO 27701, PCI-DSS, SOC 2
- Data categories
- pii, financial
- Scope
- wide
- Risk rating
- 4
- Platform compatibility
- Purview: Compatible, GCP DLP: Unsupported, Macie: Unsupported, Zscaler: Compatible, CrowdStrike DLP: Unsupported, Palo Alto: Unsupported, Netskope: Unsupported
Pattern
(?-i)(\b(?<!-)(?<!\d[ -])\d{3}[\-\s]\d{3}\b(?![ -]\d{3}\b)|(?:(?<=[Bb][Ss][Bb])|(?<=[Bb][Ss][Bb][ :#])|(?<=[Bb][Ss][Bb][:#][ ])|(?<=[Bb][Ss][Bb][ ]no[ ])|(?<=[Bb][Ss][Bb][ ]no\.[ ]))\d{6}\b)
Corroborative evidence keywords
BSB, bank state branch, branch number, routing code, account number, bank account, [object Object], account no, [object Object], routing number, sort code, IBAN, SWIFT, [object Object]
Proximity: 300 characters
Should match
062-000— CBA BSB with hyphen separatorBSB 012345— BSB as 6 continuous digits straight after a BSB labelBSB: 062000— Contiguous BSB after a colon-terminated label923-100— Credit union BSB with hyphen062 000— BSB with space separator
Should not match
06-200— Only 2 digits before hyphen0621-00— 4 digits before hyphen06200A— Contains a letter000-00— Placeholder-style value with only 2 digits in the second group — structurally rejected (sentinel full values like 000-000 are additionally dropped by AllDigitsSameFilter/TextMatchFilter in the SIT)12-3456— Trivial example with a mis-split (2 then 4 digits) — structurally rejected; real 123-456 sentinels are excluded downstream by the test-value filterEFT payment to account number 1234 5678. Invoice number: INV-204511, customer reference 204511.— Invoice remittance block (2026-10-16 boilerplate run): a six-digit invoice or customer reference near EFT and account-number wording. Contiguous six digits count only straight after a BSB label, and a digit run after a hyphen (INV-204511) is rejected.ABN 51 824 753 556 ACN 004 085 616. Pay by EFT to the bank account shown on your invoice.— Business-number letterhead with banking wording: the 3-3 pieces of a longer space-grouped number (824 753, 004 085) are not BSBs; the digit-group lookarounds reject them.
Known false positives
- Invoice remittance blocks carry six-digit invoice and customer references, and ABN/ACN digit groups, next to BSB, EFT and account-number wording, so they reached 75 as BSBs. Mitigation: A contiguous six-digit run counts as a BSB only straight after a "BSB" label; the separated 3-3 form must not follow a hyphen or a digit-and-separator, and must not be followed by a further three-digit group, so pieces of ABNs (51 824 753 556), ACNs (004 085 616) and prefixed references (INV-204511) no longer match. An unlabelled contiguous BSB is now a false negative.
- 6-digit reference codes, postcodes, or dates in non-financial contexts. Mitigation: Require financial-institution keywords in proximity.
- Placeholder BSB values and trivial sequential examples in forms or training material. Mitigation: Use AllDigitsSameFilter and TextMatchFilter guards for sentinel/test values.