日期:2014-05-18 浏览次数:21336 次
public static void Main(string[] args)
{
string s = "a123 b456 c789";
Regex reg = new Regex(@"[a-z](\d+)");
Match match = reg.Match(s);
Console.WriteLine(match.Groups[1].Value);
Console.WriteLine(match.Groups[1].Captures[0].Value);
Console.WriteLine(match.Captures[0].Value);
}