c# replace using regex in view code example Example: c# regex replace Regex.Replace( "input string", @"[a-zA-Z]+", "replace string" );