佬唐

博客园 首页 新随笔 联系 订阅 管理
 
    public const string EmailAddressRegex = @"^([a-zA-Z0-9_'+*$%/^&!/./-])+/@(([a-zA-Z0-9/-])+/.)+([a-zA-Z0-9:]{2,4})+$";
    public const string CurrencyRegex = @"(^/$?(?!0,?/d)/d{1,3}(,?/d{3})*(/./d/d)?)$";
    public const string DateRegex =
        @"^(((0?[1-9]|[12]/d|3[01])[/./-//](0?[13578]|1[02])[/./-//]((1[6-9]|[2-9]/d)?/d{2}|/d))|((0?[1-9]|[12]/d|30)[/./-//](0?[13456789]|1[012])[/./-//]((1[6-9]|[2-9]/d)?/d{2}|/d))|((0?[1-9]|1/d|2[0-8])[/./-//]0?2[/./-//]((1[6-9]|[2-9]/d)?/d{2}|/d))|(29[/./-//]0?2[/./-//]((1[6-9]|[2-9]/d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00|[048])))$";
    public const string NumericRegex = @"/d*";
日期:
^((((1[6-9]|[2-9]/d)/d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]/d|3[01]))|(((1[6-9]|[2-9]/d)/d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]/d|30))|(((1[6-9]|[2-9]/d)/d{2})-0?2-(0?[1-9]|1/d|2[0-8]))|(((1[6-9]|[2-9]/d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))$
posted on 2009-01-08 11:39  佬唐  阅读(205)  评论(0)    收藏  举报