import re


def unescape_option_value(value):
    """Unescape an option value per MySQL supported escape sequences

    See: http://dev.mysql.com/doc/refman/5.0/en/option-files.html
    """
    meta_mapping = {"b": "\b", "t": "\t", "n": "\n", "r": "\r", "\\": "\\", "s": " ", '"': '"'}

    return re.sub(r'\\(["btnr\\s])', lambda m: meta_mapping[m.group(1)], value)