private static void patternCompile ( ) { try { ptnNumber = Pattern . compile ( strNumberPattern ) ; ptnShortDate = Pattern . compile ( strShortDatePattern ) ; ptnLongDate = Pattern . compile ( strLongDatePattern ) ; ptnPercentage = Pattern . compile ( strPercentagePattern ) ; ptnCurrency = Pattern . compile ( strCurrencyPattern ) ; ptnViCurrency = Pattern . compile ( strViCurrencyPattern ) ; } catch ( PatternSyntaxException ex ) { System . err . println ( ex . getMessage ( ) ) ; System . exit ( 1 ) ; } }
Pattern compile .