C# regex capture groups code example
Example 1: 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\""
Example 2: C# read GroupComponent using regex
"\\\\PMS\\root\\cimv2:Win32_Group.Domain=\"PMS\",Name=\"Administrators\""
cimv2:(?<operclass>[\w_]+).((?<name>[\w_]+)=\\\"(?<value>[\w_]*)\\\"([.,])*)*