说我有字符串
<Records>
<record id='818591'/>
<record id='818592'/>
<record id='818593'/>
<record id='818594'/>
<record id='818595'/>
<record id='818596'/>
<record id='818597'/>
<record id='818598'/>
</Records>
在 C# 中,我如何提取和遍历每个“id”值。
我假设它会是这样的:
foreach (Match match in Regex.Matches(archerResponse,@"<Records>(<record id='\d*'/>)*</Records>"))
{
//get value
}
但是我该如何取出小数点呢?