Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript regular expression for alphanumeric

/^[a-z0-9]+$/i

^         Start of string
[a-z0-9]  a or b or c or ... z or 0 or 1 or ... 9
+         one or more times (change to * to allow empty string)
$         end of string    
/i        case-insensitive
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #regular #expression #alphanumeric
ADD COMMENT
Topic
Name
9+8 =