【发布时间】:2009-07-23 17:54:48
【问题描述】:
例如,我有一个使用 \G 选项搜索的模式,因此它会记住上次搜索。我希望能够在 .NET c# 中重用这些(即:将匹配项保存到集合中)
例如:
string pattern = @"\G<test:Some\s.*";
string id = RegEx.Match(orig, pattern).Value;
// The guy above has 3 matches and i want to save all three into a generic list
我希望这很清楚,如果没有,我可以详细说明。
谢谢 :-)
【问题讨论】: