src/Leevel/Validate/Validator.php
protected function wildcardRuleItem(string $field, $rules): array
    {
        $field = $this->prepareRegexForWildcard($field);

        $result = [];

        foreach ($this->parseDataKey() as $key) {
            if (preg_match($field, $key, $matche)) {
                $result[$key] = $this->arrayRuleItem($rules);
            }
        }

        return $result;
    }
protected function wildcardRuleItem(string $field, $rules): array
    {
        $field = $this->prepareRegexForWildcard($field);

        $result = [];

        foreach ($this->parseDataKey() as $key) {
            if (preg_match($field, $key, $matche)) {
                $result[$key] = $this->arrayRuleItem($rules);
            }
        }

        return $result;
    }
分析通配符规则.

@param string $field
@param mixed  $rules

@return array