protected function matchRange($range)
    {
        $pattern = '/(\ -\ )|(<)|(>)|(=)|(\|\|)|(\ )|(,)|(\~)|(\^)/';
        $matches = preg_split($pattern, $range, -1, PREG_SPLIT_DELIM_CAPTURE);
        $special = null;
        $replace = null;
        $first = true;

        foreach ($matches as $i => $match) {
            if ($first && '' !== $match) {
                $first = false;
                $match = '=' === $match ? 'EQUAL' : $match;
            }

            $this->matchRangeToken($i, $match, $matches, $special, $replace);
        }

        return implode('', $matches);
    }
protected function matchRange($range)
    {
        $pattern = '/(\ -\ )|(<)|(>)|(=)|(\|\|)|(\ )|(,)|(\~)|(\^)/';
        $matches = preg_split($pattern, $range, -1, PREG_SPLIT_DELIM_CAPTURE);
        $special = null;
        $replace = null;
        $first = true;

        foreach ($matches as $i => $match) {
            if ($first && '' !== $match) {
                $first = false;
                $match = '=' === $match ? 'EQUAL' : $match;
            }

            $this->matchRangeToken($i, $match, $matches, $special, $replace);
        }

        return implode('', $matches);
    }
protected function matchRange ( $ range ) { $ pattern = '/(\ -\ )|(<)|(>)|(=)|(\|\|)|(\ )|(,)|(\~)|(\^)/' ; $ matches = preg_split ( $ pattern , $ range , - 1 , PREG_SPLIT_DELIM_CAPTURE ) ; $ special = null ; $ replace = null ; $ first = true ; foreach ( $ matches as $ i => $ match ) { if ( $ first && '' !== $ match ) { $ first = false ; $ match = '=' === $ match ? 'EQUAL' : $ match ; } $ this -> matchRangeToken ( $ i , $ match , $ matches , $ special , $ replace ) ; } return implode ( '' , $ matches ) ; }
Match the range.

@param string $range The range cleaned

@return string The range
Match the range .