Reputation: 1139
I want to validate an email id entered by the use inside a textfield from C++ in Blackberry 10 App.
Can anyone suggest how it can be done ?
thanks in advance.
Upvotes: 0
Views: 323
Reputation: 491
Use the Validator API added in 10.1: cascades_validator.html">https://developer.blackberry.com/cascades/reference/bb_cascades_validator.html
You would need to supply your own regex to match an email though. There are lots of examples that do that on the Internet. You can start with (and maybe just end with) the information on http://www.regular-expressions.info/email.html
Upvotes: 1