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

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