Falcon
Yönetici
Kod:
function IsValidPhone(phone)
local pattern = "^%+90 ?5%d%d ?%d%d%d ?%d%d ?%d%d$"
return string.match(phone, pattern) ~= nil
end
phone = "+90 532 123 45 67"
if IsValidPhone(phone) then
Dialog.Message("Bilgi", "Geçerli telefon numarası!")
else
Dialog.Message("Bilgi", "Geçersiz telefon numarası!")
end