'Remove any matching quotes that wrap the given value.'

def _unquote(self, value):

    value = to_text((value or ''))
    m = re.match("^\\s*?\\'(.*?)\\'\\s*?$", value)
    if m:
        return m.group(1)
    m = re.match('^\\s*?"(.*?)"\\s*?$', value)
    if m:
        return m.group(1)
    return value
