Match m = Regex.Match(richText, "\\\\par\b", RegexOptions.None);
richText = Regex.Replace(richText, "\\\\par\b", "", RegexOptions.IgnoreCase);
Input:
"{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil Arial;}{\\f1\\fnil\\fcharset0 Microsoft Sans Serif;}}\\viewkind4\\uc1\\pard\\f0\\fs20 CC: not specified\\f1\\fs17\\par}"
I’d like it to find the \\par only, and not the \\pard that can be found in the middle of the input.
MRAB is correct: