Hello everyone here...
I need to build up a swing application related to vehicle registration and in which i want to do input the vehicle number of indian standard, like
-(BOOL) validateVehicleRegNumber:(NSString *)strNumber { //Example MH14DA8904
NSString *validReg = @"[A-Z]{2}[0-9]{2}[A-Z]{2}[0-9]{4}"; NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", validReg]; return [emailTest evaluateWithObject:strNumber];
}