Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\Parser

Reader::findPatternpublicWC 1.0

Method of the class: Reader{}

No Hooks.

Returns

Array|false.

Usage

$Reader = new Reader();
$Reader->findPattern( $pattern );
$pattern(string) (required)
.

Reader::findPattern() code WC 10.8.1

public function findPattern(string $pattern)
{
    $source = substr($this->source, $this->position);

    if (preg_match($pattern, $source, $matches)) {
        return $matches;
    }

    return false;
}