Test, validate and match regular expressions
This regex matches Belgian bank account numbers in the IBAN-like format, starting with the country code 'BE' followed by 2 check digits, and then 12 more digits grouped in sets of four, with optional hyphens between groups. It is useful for validating or extracting Belgian bank account numbers from text, though it does not verify the check digits or the full IBAN length (which is 16 characters). The pattern allows flexible formatting with or without separators.