Answers for "regex get letters 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
1

regex only letters and numbers c#

Actually I found the issue, I was validating the string during the TextBox object's creation, instead of when it updates so there was no way for that code to be executed when it was needed. My bad
Posted by: Guest on March-12-2021

C# Answers by Framework

Browse Popular Code Answers by Language