Mayank
Mayank

Reputation: 1139

Email ID Validation in C++ in Blackberry 10

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

Answers (1)

Paul Bernhardt
Paul Bernhardt

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

Related Questions