public function match($regexp, $tagName)
	{
		$tagName        = TagName::normalize($tagName);
		$passthroughIdx = 0;
		$this->parseRegexp($regexp);
		foreach ($this->captures as $i => $capture)
		{
			if (!$this->isCatchAll($capture['expr']))
			{
				continue;
			}
			$passthroughIdx = $i;
		}

		$this->collection[] = [$tagName, $regexp, $passthroughIdx];
	}
public function match($regexp, $tagName)
	{
		$tagName        = TagName::normalize($tagName);
		$passthroughIdx = 0;
		$this->parseRegexp($regexp);
		foreach ($this->captures as $i => $capture)
		{
			if (!$this->isCatchAll($capture['expr']))
			{
				continue;
			}
			$passthroughIdx = $i;
		}

		$this->collection[] = [$tagName, $regexp, $passthroughIdx];
	}
public function match ( $ regexp , $ tagName ) { $ tagName = TagName :: normalize ( $ tagName ) ; $ passthroughIdx = 0 ; $ this -> parseRegexp ( $ regexp ) ; foreach ( $ this -> captures as $ i => $ capture ) { if ( ! $ this -> isCatchAll ( $ capture [ 'expr' ] ) ) { continue ; } $ passthroughIdx = $ i ; } $ this -> collection [ ] = [ $ tagName , $ regexp , $ passthroughIdx ] ; }
Configure a pattern-based match

@param  string $regexp   Regexp to be used by the parser
@param  string $tagName  Name of the tag that holds the matched text
@return void
Configure a pattern - based match