using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
namespace CATesting
{
class Program
{
static void Main(string[] args)
{
string str = "-1832jskfksHJaklfdk89skl7kks-";
Regex re = new Regex(@"^[-0-9a-zA-Z]*$", RegexOptions.IgnoreCase);
if (!re.IsMatch(str))
{
str = string.Empty;
}
Console.WriteLine(str);
Console.ReadKey();
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货