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