oxsepabicvalidator.php

Go to the documentation of this file.
00001 <?php
00002 
00007 class oxSepaBICValidator
00008 {
00009 
00023     public function isValid( $sBIC )
00024     {
00025         $sBIC = strtoupper( trim( $sBIC ) );
00026 
00027         return (bool) getStr()->preg_match( "(^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$)", $sBIC );
00028     }
00029 
00030 }