142 Star 482 Fork 132

stlwtr / NSString-STRegex

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

NSString+STRegex

一些正则校验,判断邮箱,手机号码,车牌号,身份证号,网址,账号,密码,ip,去掉html格式,工商税号等。

image image image

// 判断邮箱
isValid = [text isValidEmail];
// 判断手机号码
isValid = [text isValidPhoneNum];
// 判断ip
isValid = [text isValidIP];
// 判断身份证号
isValid = [text isValidIdCardNum];
// 判断账号
isValid = [text isValidWithMinLenth:4 maxLenth:12 containChinese:NO firstCannotBeDigtal:YES];
// 去掉html格式
text = [text removeHtmlFormat];
// 工商税号
isValid = [text isValidTaxNo];

注:其中身份证号验证由张衎友情提供,工商税号验证由beiliubei 提供,在此表示感谢。

About

一些正则校验,判断邮箱,手机号码,车牌号,身份证号,网址,账号,密码,ip,去掉html格式,工商税号等。 expand collapse
Objective-C and 2 more languages
MIT
Cancel

Releases

No release

NSString-STRegex

Contributors

All

Activities

Load More
can not load any more
Objective-C
1
https://git.oschina.net/yanglishuan/NSString-STRegex.git
git@git.oschina.net:yanglishuan/NSString-STRegex.git
yanglishuan
NSString-STRegex
NSString-STRegex
master

Search