I'm creating a registration form for my game. Everything is set up and working great, users can create a username,email,password all of which is stored on my SQL database. I also have it set up so that the entered information is being checked in real time against my database to ensure no duplicate usernames or e-mails are trying to be registered. The only issue I'm having now is that people can register emails such as "A" or "asdasd" or whatever. Is there anyway to check that the text in the textbox contains a minimum of an "@" and a ".com"? So if the user enters an e-mail address that doesn't contain at least an "@" and a ".com" I can return false to disable the submit registration button?
So after much searching I came upon this amazing plugin for an Advanced Textbox object. It really is extremely helpful and suggest you give it a download if your project contains textbox object. Huge thanks to Pinco for this amazing help!
Link to the plugin:
Other than the normal textbox properties, this one provides also:
Develop games in your browser. Powerful, performant & highly capable.
You could also use tokencount and put as separator. If tokencount is less than 1 (or even 2 in event of email) it should be invalid.
Maybe there is some even better condition here.