Login Register script fails
#1

Hi guys.

I got a register/login system made in Dialog boxes.
Just now i noticed that people could login with for example, my name, then type \n \t \i and something like that, to return to a register dialog.

Is there any way to accept characters and numbers ONLY? I mean like a regular expression from a-z 0-9?

I tried this, but ofc that would only work on \ not characters like ~ Ѕ с etc
if(strfind(inputtext,"\\",true)!= -1)
Reply
#2

Fro1sha did release a plugin for regular expressions that you could use, click here for a direct link.
Reply
#3

Oh great, thank you i will give this a shot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)