源代码:
/// <summary>
/// 正则表示法验证100,2@100,5@100,4@400,200,100
/// </summary>
public const string RegularDivide = @"^([1-9][0-9]*[0-9]*@(\d+)(\.\d+)?|(\d+)(\.\d+)?)(,([1-9][0-9]*[0-9]*@(\d+)(\.\d+)?|(\d+)(\.\d+)?)*)*$";
/// <summary>
/// 邮箱格式
/// </summary>
public const string RegularEmail =@"^([a-z0-9A-Z]+[-|_|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$";
const,只读的全局变量,其值不可修改.
static,规定此全局变量只在当前模块(文件)中可见.
static const,既是只读的,又是只在当前模块中可见的