Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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);
    }    
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regex #matched #string
ADD COMMENT
Topic
Name
4+4 =