def _sed_esc(string, escape_all=False):
    special_chars = "^.[$()|*+?{"
    string = string.replace("'", "'\"'\"'").replace("/", "\\/")
    if escape_all is True:
        for char in special_chars:
            string = string.replace(char, "\\" + char)
    return string
Returns user's name from global configuration file.
dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/_sed_esc--crossover with--dataset/ETHPy150Open codeinn/vcs/vcs/backends/hg/repository.py/MercurialRepository.get_user_name