hello all i have one NSString in this format +1-123-123-1234 (phone number US base style) , my question is How can we compare that my string is formted in +1-123-123-1234 format .
on the basic of String compare formatted i have to done another task ..so any one have any idea regarding same please help me .
You can use a
NSRegularExpressionto test if your string is of a certain format.