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 (
//phone no format:(000)000-0000
-(BOOL)numberValidation:(NSString*)phoneString
{
NSString *phoneRegEx = @"\\([0-9]{3}\\)[0-9]{3}\\-[0-9]{4}";
NSPredicate *phoneTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", phoneRegEx];
BOOL result=[phoneTest evaluateWithObject:phoneString];
return result;
}