project.Variables["Text"].Value = Macros.TextProcessing.Replace(project.Variables["Text"].Value, "^(?<=[^<])", "<p>", "Regex", "All");
project.Variables["Text"].Value = Macros.TextProcessing.Replace(project.Variables["Text"].Value, "(?<=[>$])", "</p>", "Regex", "All");
В notepad Найти...