def validate_url_path(val):
 if (not validate_str()(val)):
  return False
 return (VALIDATE_PATH_RE.match(val).end() == len(val))

def validate_url_path ( val ) : if ( not validate_str ( ) ( val ) ) : return False return ( VALIDATE_PATH_RE . match ( val ) . end ( ) == len ( val ) )
true if val is matched by the path component grammar in rfc3986 .