1.0.0 • Published 2 years ago

regex-validation v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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.