src/main/php/UriPath.php
public function remaining(string $default = null)
    {
        $matches = [];
        preg_match('/(' . self::pattern($this->configuredPath) . ')([^?]*)?/', $this->calledPath, $matches);
        $last = count($matches) - 1;
        if (2 > $last) {
            return $default;
        }

        if (isset($matches[$last]) && !empty($matches[$last])) {
            return $matches[$last];
        }

        return $default;
    }
public function remaining(string $default = null)
    {
        $matches = [];
        preg_match('/(' . self::pattern($this->configuredPath) . ')([^?]*)?/', $this->calledPath, $matches);
        $last = count($matches) - 1;
        if (2 > $last) {
            return $default;
        }

        if (isset($matches[$last]) && !empty($matches[$last])) {
            return $matches[$last];
        }

        return $default;
    }
public function remaining ( string $ default = null ) { $ matches = [ ] ; preg_match ( '/(' . self :: pattern ( $ this -> configuredPath ) . ')([^?]*)?/' , $ this -> calledPath , $ matches ) ; $ last = count ( $ matches ) - 1 ; if ( 2 > $ last ) { return $ default ; } if ( isset ( $ matches [ $ last ] ) && ! empty ( $ matches [ $ last ] ) ) { return $ matches [ $ last ] ; } return $ default ; }
returns remaining path that was not matched by original path

@param   string  $default
@return  string
returns remaining path that was not matched by original path