protected function wrappedRegexValidator($regex, $requirementString)
    {
        $regexValidator = $this->regexValidator($regex, $requirementString);
        $validator = $this->app->make(ClosureValidator::class, [
            function (ClosureValidator $validator, $string, ArrayAccess $error = null) use ($regexValidator) {
                try {
                    $regexValidator->isValid($string, $error);
                } catch (\RuntimeException $e) {
                    if ($error) {
                        $error[] = $regexValidator::E_DOES_NOT_MATCH;
                    }

                    return false;
                }
            },
            function () use ($regexValidator, $requirementString) {
                return [
                    $regexValidator::E_DOES_NOT_MATCH => $requirementString
                ];
            }
        ]);

        return $validator;

    }