1.0.0 • Published 2 years ago
regex-validation v1.0.0
regex-validation
This validation function will validate Regex numeric, alphaonly, alphanumeric, alphanumericwithspecialchar, email
Use case # 1:
Requirement: If the original data is 123E45
(which you want numeric regex validation)
Use: validateRegexData("123E45","numeric");
Output: false
.
Use case # 2:
Requirement: If the original data is 123E45
(which you want alpha-numeric regex validation)
Use: validateRegexData("123E45","alpha-numeric");
Output: true
.
Use case # 3:
Requirement: If the original data is Demo Data
(which you want alphabets-with-space regex validation)
Use: validateRegexData("Demo Data","alphabets-with-space");
Output: true
.
1.0.0
2 years ago