Jimmy. Posted July 15, 2015 Share Posted July 15, 2015 How to check or in guiCreateEdit is dot symbol. I tried: if string.find(register_email, ".") then else triggerClientEvent(client,"SetWarningMessage",client,"Register","Dot not found.") return end but not working. Link to comment
GTX Posted July 15, 2015 Share Posted July 15, 2015 string.find(register_email, ".", 1, true) viewtopic.php?f=91&t=89996#p808826 If you would like to check if email matches its original pattern. local email = "[email protected]" if email:match("[A-Za-z0-9%.%%%+%-]+@[A-Za-z0-9%.%%%+%-]+%.%w%w%w?%w?") then outputChatBox("VALID EMAIL") else outputChatBox("INVALID EMAIL") end Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now