#!/usr/bin/env js print("url:") url =readline(); if(url.match(/hyyps?;\/\/[^/]+(\/.*)/)){ print("path="+RegExp.$1); }