def edit_task(self, prefix, text):
        task = self[prefix]
        if text.startswith('s/') or text.startswith('/'):
            text = re.sub('^s?/', '', text).rstrip('/')
            find, _, repl = text.partition('/')
            text = re.sub(find, repl, task['text'])

        task['text'] = text
Edit the task with the given prefix.
dataset/ETHPy150Open sjl/t/t.py/TaskDict.edit_task