src/Parser/Checker.php
public function hasKeyAndValueSubPattern()
    {
        if (!$this->isValidRegex()) {
            return false;
        }

        if (false === strpos($this->string, '(?<key>') || false === strpos($this->string, '(?<value>')) {
            return false;
        }

        return true;
    }
public function hasKeyAndValueSubPattern()
    {
        if (!$this->isValidRegex()) {
            return false;
        }

        if (false === strpos($this->string, '(?<key>') || false === strpos($this->string, '(?<value>')) {
            return false;
        }

        return true;
    }
public function hasKeyAndValueSubPattern ( ) { if ( ! $ this -> isValidRegex ( ) ) { return false ; } if ( false === strpos ( $ this -> string , '(?<key>' ) || false === strpos ( $ this -> string , '(?<value>' ) ) { return false ; } return true ; }
Confirms if a valid regex string contains a key and a value named suppattern.

A simple directive matcher MUST contain a key and a value named subpattern.
A starting block directive matcher MUST contain a key and a value named subpattern.

@return bool true if the string is valid, false otherwise
Confirms if a valid regex string contains a key and a value named suppattern .