import re


def double_backslash(s):
    """
    Escape backslashes to work with regex.
    :param s: string.
    :return: string where backslashes are replaced with double backslash.
    """
    return re.sub(r'\\', r'\\\\', s)