private fun 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 (ex: PatternSyntaxException) { System.err.println(ex.getMessage()) System.exit(1) } }
Pattern compile .