Regular Expression for password in iPhone

后端 未结 2 1331
北海茫月
北海茫月 2020-12-21 19:14

I am pretty much weak in creating Regular Expression. So i am here.

I need a regular expression satisfying the following.

NSString *nameRegex =@\"My          


        
2条回答
  •  半阙折子戏
    2020-12-21 19:37

    As a non-regex expert, I would solve this by splitting up the criteria into separate tests which can then be easier understood and changed, ie multiple if conditions. I believe this cannot be done with a single regex, at least not in an understandable fashion :)

提交回复
热议问题