c# - Removing "RE:" (and alikes) from email subject using RegEx class -


i need remove leading re: subject , it's not day today, because don't match , missing simple. predecessor made abundantly clear substring approach works can't stand bad technique. :)

//emailsubject = emailsubject.substring(4); emailsubject = regex.replace(emailsubject, @"^.{0, 3}:\s", ""); 

the way see it, should find beginning of string , between 0 , 3 characters followed colon , space. then, junk should removed.

the computer disagrees, though, , i'm out of ideas. simple thing miss here?!

remove space after comma:

@"^.{0,3}:\s" 

Comments