can regular expression return string in dotnet code example

Example 1: 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);
    }    
}

Example 2: C# read GroupComponent Or PartComponent using regex

cimv2:(?<operclass>[\w_]+).((?<name>[\w_]+)=\\\"(?<value>[\w_]*)\\\"([.,])*)*

"GroupComponent": "\\\\PMS\\root\\cimv2:Win32_Group.Domain=\"PMS\",Name=\"Administrators\""
"PartComponent": "\\\\PMS\\root\\cimv2:Win32_UserAccount.Domain=\"TEST\",Name=\"Administrator\""