You are here

public function Reader::findPattern in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/css-selector/Parser/Reader.php \Symfony\Component\CssSelector\Parser\Reader::findPattern()

Parameters

string $pattern:

Return value

bool

File

vendor/symfony/css-selector/Parser/Reader.php, line 100

Class

Reader
CSS selector reader.

Namespace

Symfony\Component\CssSelector\Parser

Code

public function findPattern($pattern) {
  $source = substr($this->source, $this->position);
  if (preg_match($pattern, $source, $matches)) {
    return $matches;
  }
  return false;
}