Article 5NKNP Alphanumeric username javascript

Alphanumeric username javascript

by
despite
from LinuxQuestions.org on (#5NKNP)
Hello,

I am trying to write some javascript code to validate a registration form. I use the match function of the string library, so for example Quote:
"someusername".match(reg);
I know that there is plenty of resources on the Internet but unfortunately I have tried too many things and still validation does not work. Can someone please tell me how the regular expression should look like??
The regular expression is for the username which needs to be only alphanumeric.

Thank you.latest?d=yIl2AUoC8zA latest?i=rhVvw_p5aO0:l-Jm3xWpWDA:F7zBnMy latest?i=rhVvw_p5aO0:l-Jm3xWpWDA:V_sGLiP latest?d=qj6IDK7rITs latest?i=rhVvw_p5aO0:l-Jm3xWpWDA:gIN9vFwrhVvw_p5aO0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments