Falcon
Yönetici
Kod:
function IsValidEmail(email)
local pattern = "^[A-Za-z0-9%.]+@[A-Za-z0-9%.]+%.[A-Za-z]+$"
return string.match(email, pattern) ~= nil
end
email = "test@example.com"
if IsValidEmail(email) then
Dialog.Message("Bilgi", "Geçerli bir e-posta adresi!")
else
Dialog.Message("Bilgi", "Geçersiz e-posta adresi!")
end