xyq

XYQRegexPattern

正则表达式(比较常用的,支持自定义的)

Showing:

Popularity

Downloads/wk

0

GitHub Stars

37

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

XYQRegexPattern

  正则表达式(因为正则表达式比较常用,所以列出其中常用的式子、当然支持自定义正则表达式)

How to user api

CocoaPods支持

    pod 'XYQRegexPattern', '~> 2.0.0'

    image

1、类方法,演示如下:

#import "XYQRegexPatternHelper.h"

NSLog(@"%d",[XYQRegexPatternHelper validateBankCardNumber:@"62218849800236153"]);

NSLog(@"%d",[XYQRegexPatternHelper validateEmail:@"363@qq.com"]); 

NSLog(@"%d",[XYQRegexPatternHelper validateCustomRegex:@"^[\u4E00-\u9FA5]*$" TargetString:@"我只是中文"]);
  

2、实例方法,演示如下:

#import "XYQRegexPatternHelper.h"

XYQRegexPatternHelper *hepler = [[XYQRegexPatternHelper alloc] init];

NSLog(@"%d",[hepler validateIsValidQQ:@"1383478"]);        

NSLog(@"%d",[hepler validateIsValidMailbox:@"363@qq.com"]);

NSLog(@"%d",[hepler validateCustomRegex:@"^[\u4E00-\u9FA5]*$" TargetString:@"我只是中文"]);

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial