Stringy\Stringy::matchesPattern PHP Method

matchesPattern() private method

Returns true if $str matches the supplied pattern, false otherwise.
private matchesPattern ( string $pattern ) : boolean
$pattern string Regex pattern to match against
return boolean Whether or not $str matches the pattern
    private function matchesPattern($pattern)
    {
        $regexEncoding = $this->regexEncoding();
        $this->regexEncoding($this->encoding);
        $match = \mb_ereg_match($pattern, $this->str);
        $this->regexEncoding($regexEncoding);
        return $match;
    }