<?php $shortBicPattern = '/^[A-Z]{6}[A-Z0-9]{2}$/'; $longBicPattern = '/[A-Z]{6}[A-Z0-9]{2}[A-Z0-9]{3}/'; echo preg_match($shortBicPattern, 'COBADEFFXXX'); echo preg_match($longBicPattern, 'COBADEFFXXX');
You have javascript disabled. You will not be able to edit any code.