@Override
    public boolean matches(final RegisteredService registeredService, final String serviceId) {
        return RegexUtils.createPattern(registeredService.getServiceId())
            .matcher(serviceId).matches();
    }
This is {@link FullRegexRegisteredServiceMatchingStrategy}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/FullRegexRegisteredServiceMatchingStrategy.java