So I imagine that I need a regex statement to do this but I haven’t had to do any regex with objective c yet, and I haven’t written a regex statement in like a year.
I think it should be like ((?=.*[0-9]).{7,1000})
How do I put this into an objective c string comparison and evaluate the results?
Also is my regex correct?
While a regular expression would probably work, there is another approach:
This code actually checks more than just 0-9. It handles digits from other languages too. If you really just want 0-9 then replace:
with: