Regex for an email address doesn't work

后端 未结 8 2115
隐瞒了意图╮
隐瞒了意图╮ 2021-02-04 22:32

I\'m trying to check if some email address is correct with the following code :

NSPredicate *regexMail = [NSPredicate predicateWithFormat:@\"SELF MATCHES \'.*@.*         


        
8条回答
  •  爱一瞬间的悲伤
    2021-02-04 22:54

    I think youre looking for this. Its a quite comprehensive listing of different regexps and a list of mail addresses for each, stating if the regexp was successful or not.

提交回复
热议问题