Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
/** Note: this pattern is CaSe-SeNsItIvE! */ protected static final String PATTERNSTRING_UK_POSTCODE_BS_7666 = "(GIR 0AA|[A-PR-UWYZ]([0-9]{1,2}|([A-HK-Y][0-9]|[A-HK-Y][0-9]([0-9]|[ABEHMNPRV-Y]))|[0-9][A-HJKS-UW]) [0-9][ABD-HJLNP-UW-Z]{2})"; /** Note: this pattern is CaSe-SeNsItIvE! */ protected static final Pattern PATTERN_UKPOSTCODE_BS_7666 = Pattern.compile(PATTERNSTRING_UK_POSTCODE_BS_7666); public static void main(String[] args) throws Exception { final String matchme = "lolzAA9A 9AArofl"; if(doesMatchUKPostcode_BS_7666(matchme)){ System.out.println(getMatchUKPostcode_BS_7666(matchme)); }else{ System.out.println("Didn't match..."); } } /** * Checks whether the aPostcode passed is a valid BS 7666-UK-Postcode. * @param aPostcode CaSe-SeNsItIvE! * @return * @throws NoMatchFoundException */ protected static boolean doesMatchUKPostcode_BS_7666(final String aPostcode){ final Matcher matcher = PATTERN_UKPOSTCODE_BS_7666.matcher(aPostcode); return matcher.find(); } /** * Extracts a matched BS 7666-UK-Postcode out of a String. * @param aPostcode CaSe-SeNsItIvE! * @return * @throws NoMatchFoundException whether the aPostcode passed is not a valid BS 7666-UK-Postcode. */ protected static String getMatchUKPostcode_BS_7666(final String aPostcode) throws NoMatchFoundException{ final Matcher matcher = PATTERN_UKPOSTCODE_BS_7666.matcher(aPostcode); final boolean matchFound = matcher.find(); if(matchFound) return matcher.group(); else throw new NoMatchFoundException(); }