src/Helpers/Request/StringHelper.php
public function matchWildcard($pattern, $string, $options = [])
    {
        return $this->proxy(__FUNCTION__, [$pattern, $string, $options]);
    }
public function matchWildcard($pattern, $string, $options = [])
    {
        return $this->proxy(__FUNCTION__, [$pattern, $string, $options]);
    }
Checks if the passed string would match the given shell wildcard pattern.
This function emulates [[fnmatch()]], which may be unavailable at certain environment, using PCRE.
@param string $pattern the shell wildcard pattern.
@param string $string the tested string.
@param array $options options for matching. Valid options are:

- caseSensitive: bool, whether pattern should be case sensitive. Defaults to `true`.
- escape: bool, whether backslash escaping is enabled. Defaults to `true`.
- filePath: bool, whether slashes in string only matches slashes in the given pattern. Defaults to `false`.

@return bool whether the string matches pattern or not.
@see \Reaction\Helpers\StringHelper::matchWildcard()