Javascript Regular Expressions Match Only Alphanumeric Characters

Description

Javascript Regular Expressions Match Only Alphanumeric Characters

var reg = /[a-zA-Z0-9]/; 
reg.test("somethingELSE"); // true 
reg.test("hello"); // true 
reg.test("112a"); // true 
reg.test("112"); // true 
reg.test("^"); // false 



PreviousNext

Related