Email address validation using corona sdk
coronasdk, email, lua
Solution
Try this regular expression:
local email = "email@email.com"
if (email:match("[A-Za-z0-9%.%%%+%-]+@[A-Za-z0-9%.%%%+%-]+%.%w%w%w?%w?")) then
print("VALID EMAIL")
else
print("INVALID EMAIL")
end
Problem
In my project, a form for the user to fill the details. In that, one text field to enter email id of the user. So i need to validate the email in that text field, in corona project