Answers for "regex alphanumeric"

5

regex to identify numeric and alphanumeric

"^[a-zA-Z0-9_]*$"
Posted by: Guest on December-23-2019
0

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
Posted by: Guest on December-03-2020
1

regex allow alphanumeric and special characters

/^[ A-Za-z0-9_@./#&+-]*$/
Posted by: Guest on July-13-2020
0

alphanumeric regex validation

validPattern = "^[a-zA-Z0-9]{10}$"; // alphanumeric exact 10 letters
this.projectForm = this.fb.group({
 ...
 CIG: [null, [Validators.required, Validators.pattern(this.validPattern)],
Posted by: Guest on August-04-2021
0

regex alphanumeric

/^\w+$/
Posted by: Guest on November-18-2021

Browse Popular Code Answers by Language