private Pattern getPattern ( String expr ) { Pattern pattern = patterns . get ( expr ) ; if ( pattern == null ) { pattern = Pattern . compile ( expr ) ; patterns . put ( expr , pattern ) ; } return pattern ; }
Returns the pattern for the given regular expression .