I have the following NSString:
NSString * testString=@ "megaUser 35 youLost 85 noob 10 showTime 36 pwn 110"
I want to know if this string contains a number greater than 80. I do not need to know where, how much or what is the actual number, but just a logical value (YES or NO). I was thinking of regexing the string to remove everything except numbers, but after that I am not sure which efficient way to do the validation.
In other words, is there a solution that does not require breaking the string into array components and then doing the check one at a time? If anyone knows how to do this, please let me know!
Thanks!
source share