仪表盘
版本库
文件存储
活动
搜索
登录
IStation
/
shys/ChEqCalc.V1.3
陈行二取(桌面程序和WEBAPI)
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
众毅 添加 OptSortType 校核
tangxu
2024-05-30
9d2e93a197a0babf0761d7517f43d9d83143218b
[IStation/shys/ChEqCalc.V1.3.git]
/
Utils
/
IStation.Untity
/
工具
/
RegExHelper.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace IStation.Untity
{
/// <summary>
/// 正则表达式 辅助类
/// </summary>
public class RegExHelper
{
/// <summary>
/// 验证邮箱账户格式
/// </summary>
/// <param name="text"></param>
/// <returns></returns>
public static bool VerifyEmailFormat(string text)
{
if (!System.Text.RegularExpressions.Regex.IsMatch(text, @"^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"))
return false;
return true;
}
}
}