using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace IoTIntegrationPlatform.Common
{
///
///正则验证
///
public static class RegexExtend
{
///
/// 邮箱验证
///
///
public static Regex EmailCheckReg()
{
return new Regex("^[A-Za-z0-9\\u4e00-\\u9fa5]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$", RegexOptions.CultureInvariant, TimeSpan.FromMilliseconds(1000));
}
///
/// 手机号验证
///
///
public static Regex PhoneCheckReg()
{
return new Regex("^1[3-9]\\d{9}$", RegexOptions.CultureInvariant, TimeSpan.FromMilliseconds(1000));
}
};
}