boon/src/main/java/org/boon/validation/validators/RegexValidator.java
private Pattern compileRegex() {

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

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

@return the resulting pattern object