Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php regex validate username

if (preg_match('/^[A-Za-z]{1}[A-Za-z0-9]{5,31}$/', "moo123"))
{
    echo 'succeeded';
}
else
{
    echo 'failed';
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #regex #validate #username
ADD COMMENT
Topic
Name
5+9 =