Devise\Pages\Interpreter\DeviseParser::matches PHP Method

matches() protected method

Finds a regex pattern and returns the match for us
protected matches ( string $html, string $pattern ) : array
$html string
$pattern string
return array
    protected function matches($html, $pattern)
    {
        preg_match_all($pattern, $html, $matches, PREG_OFFSET_CAPTURE);
        if (!isset($matches[0])) {
            return array();
        }
        return $matches[0];
    }