Quote:I need the solution in Rubular.com as that works as per my tool.
string s = "Sunday Monday100"; Console.WriteLine(s.Replace("Monday", "")); //prints "Sunday 100"
System.Console.WriteLine ( System.Text.RegularExpressions.Regex.Replace ( "Sunday Monday100" , "(^.*)-?(Monday)(.*)$" , "$1$3" ) ) ;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)