def METHOD_NAME(path):
    wpc_string = '/'.join(path)
    # Regex explanation
    # ^                            -- Next character matched must be the beginning of the string
    #  ([^(/]*)                    -- match an arbitrary amount of non-left-paren, non-slash characters, capture
    #                                 (This capture group contains the object name)
    #           \(?                -- Optionally match (
    #              (.*?)           -- Optionally match anything and capture
    #                                 (This capture group contains the instance name)
    #                   \)?        -- Optionally match )
    #                      /       -- match a forward slash
    #                       (.*)   -- Match any characters after the slash and capture
    #                                 (This capture group contains the counter name)
    #                           $  -- Last character matched must be end of string
    # End result after split() is length-5 array. indices 1-3 refer to the capture groups
    wpc_regex = r'^([^(/]*)\(?(.*?)\)?/(.*)$'
    match_list = re.split(wpc_regex, wpc_string) 
    counter_path = '\\'
    if match_list[2]:
        counter_path += match_list[1] + '(' + match_list[2] + ')\\' + match_list[3]
    else:
        counter_path += match_list[1] + '\\' + match_list[3]
    return counter_path