RegexUtil.h 442 Bytes
Newer Older
陈俊俊's avatar
陈俊俊 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
//
//  RegexUtil.h
//  XFFruit
//
//  Created by 陈俊俊 on 15/9/9.
//  Copyright (c) 2015年 Xummer. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface RegexUtil : NSObject
//验证是否是整数,小数
+ (BOOL)isValidateNmuberAndFloat:(NSString *)candidate;

陈俊俊's avatar
陈俊俊 committed
15 16 17 18 19 20 21
//校验手机号位数
+ (BOOL)isValidatePhone:(NSString *) candidate;

// 手机号前3位规定
+ (BOOL)isValidatePhoneNew:(NSString *)candidate;


陈俊俊's avatar
陈俊俊 committed
22
@end