Remove forward/reply prefixes (F:, Fw:, Fwd:, Re:, R:) from an email subject
C# Code Sample:
var subject = "RE: RE:Fw: RE:FW: FWD: re: This is a message from a long thread re: asdf ";
var pattern = @"((?:[\t ](?:R|RE|F|FW|FWD):[\t ]))(.)";
var regex = new Regex(pattern, RegexOptions.ECMAScript | RegexOptions.IgnoreCase);
var match = regex.Match(subject);
var extr...
Submitted by safeer - 6 years ago