public void setExcludedPattern(final String regularExpression) {
        excludedPatterns.clear();
        excludeRegex(regularExpression);
    }
<p>setExcludedPattern.</p>

@param regularExpression a {@link String} object
pac4j-core/src/main/java/org/pac4j/core/matching/matcher/PathMatcher.java