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

        $messages = [];

        foreach ($this->parseDataKey() as $key) {
            if (preg_match($field, $key, $matche)) {
                $messages = array_merge($messages,
                    $this->arrayMessageItem($key, $message)
                );
            }
        }

        return $messages;
    }
protected function wildcardMessageItem(string $field, $message): array
    {
        $field = $this->prepareRegexForWildcard($field);

        $messages = [];

        foreach ($this->parseDataKey() as $key) {
            if (preg_match($field, $key, $matche)) {
                $messages = array_merge($messages,
                    $this->arrayMessageItem($key, $message)
                );
            }
        }

        return $messages;
    }
分析通配符消息.

@param string $field
@param mixed  $message

@return array