Milo-CTO

 用到了一个第三方RegexKitLite

 #import "RegexKitLite.h"

 

 进行匹配

    NSString *regex = @"^[A-Za-z0-9]+$"; // 匹配由数字和26个英文字母组成的字符串

    if (![self.textField.text stringByMatching:regex]) {

        [toolset MBProgressHUDWithText:@"请输入纯字母和数字"];

        return;

    }

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2021-12-11
  • 2021-08-20
  • 2022-12-23
  • 2021-12-31
  • 2022-01-17
猜你喜欢
  • 2022-02-05
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2022-02-12
相关资源
相似解决方案