def remove_protocol_from_url(url):
 if (url is None):
  return url
 if (url.find('://') > 0):
  new_url = url.split('://')[1]
 else:
  new_url = url
 return new_url.rstrip('/')

def remove_protocol_from_url ( url ) : if ( url is None ) : return url if ( url . find ( '://' ) > 0 ) : new_url = url . split ( '://' ) [ 1 ] else : new_url = url return new_url . rstrip ( '/' )
supplied url may be null .