Answers for "regex find string in text c#"

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
0

c# regex find number in string

//System.Text.RegularExpressions.Regex
resultString = Regex.Match(subjectString, @"\d+").Value;
Posted by: Guest on November-03-2021

Code answers related to "regex find string in text c#"

C# Answers by Framework

Browse Popular Code Answers by Language