我有以下代码:
private void button_borrow_Click(object sender, EventArgs e)
{
Regex filter = new Regex(@"[0-9]*");
String items = "";
var selectedItems = checkedListBox_bookview.CheckedItems;
foreach (var item in selectedItems)
{
}
MessageBox.Show(items.ToString() + " Were selected: " + selectedItems.Count);
}
我想从中获取匹配的字符串filter
。我该怎么做?