Ok im using this in my script now that im working on, at the moment my string is:
PHP Code:
$regexp = "^[A-Za-z0-9]";
That means that they can only use letters and numbers to start, i want to make it so thats all they can do, at the moment i could register "admin-#" i have tried:
PHP Code:
$regexp = "^[A-Za-z0-9]$";
But then it will not let any username be correct? Am i doing something wrong or is there a different string to do this?