def regex_result_escape_commands(result):
    """
        Regex search handler: Take apart results which encapsulate command
        escaping content.

        Args:
            result (MatchObject): Match result from a previous regex match.
    """
    return "\"command\": [\"{}\"]".format(result.group(1).replace("\"", "'"))