regular expression replace

support for [regex] parameter to magix.execute.replace, in addition to
better formatting of attachments in replies