haimingkaifa

用正则表达式,这个很简单的
Console.WriteLine("请输入");
string url = Console.ReadLine();
bool b = Regex.IsMatch(url, "^[a-zA-Z0-9]+@sina\.com$"); Console.WriteLine(b);

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
猜你喜欢
  • 2021-12-08
  • 2021-12-01
  • 2022-12-23
相关资源
相似解决方案