question: private void compilePattern ( String patternString ) { try { pattern = Pattern . compile ( patternString ) ; } catch ( PatternSyntaxException ex ) { LOGGER . warning ( "Invalid regex: " + ex . getLocalizedMessage ( ) ) ; } }
target:  Compiles a pattern (regex) and sets it as pattern.