Index: UK.php =================================================================== RCS file: /repository/pear/Validate/Validate/UK.php,v retrieving revision 1.7 diff -r1.7 UK.php 59a60 > * @author David Grant 65,67c66,72 < $preg = "/^[A-Z]{2}[0-9]{6}[ABCDEFT]/"; < $match = (preg_match($preg, $ni))? true : false; < return $match; --- > $preg = "/^[^DFIQUV][^DFIOQUV][0-9]{6}[ABCD ]{1}/"; > if (preg_match($preg, $ni)) { > $bad_prefixes = array('GB', 'BG', 'NK', 'KN', 'TN', 'NT', 'ZZ'); > return array_search(substr($ni, 0, 2), $bad_prefixes) ? false : true; > } else { > return false; > } 200c205 < ?> \ No newline at end of file --- > ?>