boon/src/main/java/org/boon/validation/validators/MatchAllRegexValidator.java
private Pattern compileRegex( String match ) {

        Pattern pattern = compiledRegexCache.get( match );
        if ( pattern == null ) {
            pattern = Pattern.compile( match );
            compiledRegexCache.put( match, pattern );
        }
        return pattern;
    }
private Pattern compileRegex( String match ) {

        Pattern pattern = compiledRegexCache.get( match );
        if ( pattern == null ) {
            pattern = Pattern.compile( match );
            compiledRegexCache.put( match, pattern );
        }
        return pattern;
    }
Compiles a match.

@return the resulting pattern object