Validates an International Bank Account Number (IBAN) and extracts its components: country code, check digits, bank code, and account number. Uses the MOD-97 algorithm for validation.
Inputs
IBAN: The full IBAN to validate (e.g., GB29 NWBK 6016 1331 9268 19).
Tips
IBAN length varies by country (e.g., UK=22 chars, Germany=22, Brazil=29).
The check digits (positions 3-4) are computed using MOD-97 and catch transposition errors.
Always validate IBANs before processing international payments.