protected function exprIsQuantifiable($expr)
	{
		$regexps = [
			// A dot or \R
			'(^(?:\\.|\\\\R)$)D',

			// A character class
			'(^\\[\\^?(?:([^\\\\\\]]|\\\\.)(?:-(?-1))?)++\\]$)D'
		];

		return $this->matchesAny($expr, $regexps) || $this->exprIsChar($expr);
	}
protected function exprIsQuantifiable($expr)
	{
		$regexps = [
			// A dot or \R
			'(^(?:\\.|\\\\R)$)D',

			// A character class
			'(^\\[\\^?(?:([^\\\\\\]]|\\\\.)(?:-(?-1))?)++\\]$)D'
		];

		return $this->matchesAny($expr, $regexps) || $this->exprIsChar($expr);
	}
protected function exprIsQuantifiable ( $ expr ) { $ regexps = [ // A dot or \R '(^(?:\\.|\\\\R)$)D' , // A character class '(^\\[\\^?(?:([^\\\\\\]]|\\\\.)(?:-(?-1))?)++\\]$)D' ] ; return $ this -> matchesAny ( $ expr , $ regexps ) || $ this -> exprIsChar ( $ expr ) ; }
Test whether given expression is quantifiable

@param  string $expr
@return bool
Test whether given expression is quantifiable