For the validation for the phone number and included -
@\"^\\+(?:[0-9] ?){6,14}[0-9]$\"
I have to validate phone number with -
example 333-333-3333 (
Obj-C has NSPredicate for this. As I remember, you can use code like this for your task:
NSPredicate * Pred = [NSPredicate predicateWithFormat:@"SELF MATCHES '^\+(?:[0-9] ?){6,14}[0-9]$'"];
bool ifYes = [Pred evaluateWithObject:_yourNSString]];
for more detail look in Apple docs.
If you want to found proper reg.exp., please use some libs like: http://regexlib.com/DisplayPatterns.aspx?cattabindex=6&categoryId=7