110,561
社区成员
发帖
与我相关
我的任务
分享
string str = "abcbbbbbbbb";
string reg = @"^abc";
Console.WriteLine(Regex.IsMatch(reg, str));
Regex patten = new Regex("^abc");
Console.WriteLine(patten.IsMatch(str));