Answers for "c# regex replace string"

C#
3

c# regex replace

Regex.Replace(
  "input string", @"[a-zA-Z]+", "replace string"
);
Posted by: Guest on May-21-2020
0

c# regex get matched string

Regex filter = new Regex(@"(d+)");

foreach (var item in checkedListBox1.CheckedItems)
{
    var match = filter.Match(item.ToString());
    if (match.Success)
    {
        MessageBox.Show(match.Value);
    }    
}
Posted by: Guest on November-12-2020
-2

c# replace regex string

string pattern = @"bwestb";
string modifiedString = Regex.Replace(input, pattern, strReplacement, RegexOptions.IgnoreCase);
Posted by: Guest on January-28-2021

Code answers related to "c# regex replace string"

C# Answers by Framework

Browse Popular Code Answers by Language