How can we validate phone numbers in Tizen native application?
I've tried validating a phone number in Tizen with the help of following code
regex_t regex; reti = regcomp(®ex, "^((\\+91)|0?)[789]{1}\\d{9}$", 0); reti = regexec(®ex, phoneNumber, 0, NULL, 0);
But the above code doesn;t work for me, both the functions regcomp and regexec are giving error code number -126, can anyone tell me where the problem is?
Thanks.