/* Email verification modified by helensong */-(bool) isvalidateemail :( nsstring *) email {nsstring * emailregex = @ "[A-Z0-9a-z. _ % +-] + @ [A-Za-z0-9. -] + \\. [A-Za-Z] {2, 4} "; nspredicate * emailtest = [nspredicate predicatewithformat: @" Self matches % @ ", emailregex]; return [emailtest email];} /* Verify the mobile phone number modified by helensong */-(bool) isvalidatemobile :( nsstring *) mobile {// the mobile phone number starts with 13, 15, and 18, eight \ D numeric characters nsstring * phoneregex = @ "^ (13 [0-9]) | (15 [^ 4, \ D]) | (18 [0, 0-9]) \ D {8} $ "; nspredicate * phonetest = [nspredicate predicatewithformat: @" Self matches % @ ", phoneregex]; // nslog (@ "phonetest is % @", phonetest); return [phonetest evaluatewithobject: Mobile];}/* plate number verification modified by helensong */bool validatecarno (nsstring * carno) {nsstring * carregex = @ "^ [A-Za-Z] {1} [A-Za-z_0-9] {5} $"; nspredicate * cartest = [nspredicate predicatewithformat: @ "Self matches % @", carregex]; nslog (@ "cartest is % @", cartest); return [cartest evaluatewithobject: carno];}