111,126
社区成员
发帖
与我相关
我的任务
分享
string ss = @"Let us do morning-execises!";
MatchCollection matches = Regex.Matches(ss, @"(?<=^|[\W]+)[A-Za-z]");
foreach (Match match in matches)
MessageBox.Show(match.Value);
string s = @"Let us do morning-execises!";
MatchCollection matches = Regex.Matches(s, @"(?<=^|[,;'\-\s]+)[A-Za-z]");
foreach (Match match in matches)
Response.Write(match.Value + "<br/>");string s = @"Let us do morning-execises!";
MatchCollection matches = Regex.Matches(s, @"(?<=^|[,;'\-\s]+[A-Za-z]{2})[A-Za-z]");
foreach (Match match in matches)
Response.Write(match.Value + "<br/>"); string s = @"Let us do morning-execises!";
MatchCollection matches = Regex.Matches(s, @"(?<=[,;'\-\s]+[A-Za-z]{2})[A-Za-z]");
foreach (Match match in matches)
Response.Write(match.Value + "<br/>");