Peekmo\JsonPath\JsonStore::normalizedFirst PHP Method

normalizedFirst() private method

private normalizedFirst ( $expr )
    private function normalizedFirst($expr)
    {
        if ($expr == "") {
            return false;
        } else {
            if (preg_match("/^\$(\\[([0-9*]+|'[-a-zA-Z0-9_ ]+')\\])*\$/", $expr)) {
                print "normalized: " . $expr;
                return $expr;
            } else {
                $res = $this->jsonPath->jsonPath($this->data, $expr, array("resultType" => "PATH"));
                return $res;
            }
        }
    }