This bit of regex helps me validate IBAN numbers but it doesnt allow spaces. Some people add spaces to their IBAN numbers, which messes with the validation.
How can i make it so that it allows spaces anywhere the string?
if (preg_match('/^[A-Z]{2}[0-9]{2}[A-Z0-9]{1,30}$/', $iban)) {
// do something
}