📌  相关文章
📜  c# regex 获取匹配的字符串 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:50.353000             🧑  作者: Mango

代码示例1
Regex filter = new Regex(@"(\d+)");

foreach (var item in checkedListBox1.CheckedItems)
{
    var match = filter.Match(item.ToString());
    if (match.Success)
    {
        MessageBox.Show(match.Value);
    }    
}