What regex would allows text or numbers, or text and number (with no spaces) and a maximum length of 255 characters?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You want something like:
^ matches the beginning of the string
[a-zA-Z0-9] matches an alpha numeric character
{,255} means up to 255 of the previous part (alpha numeric character)
$ matches the end of the string