Answers for "c# regex get matched string"

C#
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

Code answers related to "c# regex get matched string"

C# Answers by Framework

Browse Popular Code Answers by Language