https://github.com/jannicz/regex-validators
Form Validation lib
https://github.com/jannicz/regex-validators
Last synced: 9 months ago
JSON representation
Form Validation lib
- Host: GitHub
- URL: https://github.com/jannicz/regex-validators
- Owner: jannicz
- License: mit
- Created: 2014-12-03T13:11:40.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-12-26T10:18:28.000Z (almost 8 years ago)
- Last Synced: 2023-02-27T05:11:34.715Z (almost 3 years ago)
- Language: JavaScript
- Homepage:
- Size: 45.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JavaScript-Regex-Validators
See Validator Demo and Examples
## Setup
Include the validation script and the validator functions
```html
```
## Usage
Crete a div containing `div class="errors` and a sibling input field and attach a data-validate="validationFunctionName" to each input field
```html
- contains at least one alphabetic character
- contains at least one digit or a non-alphabetic character
```
# Usage examples
Can be used for frontend validation of following input fields:
### Numbers
- digital place separator
- valid date
- maximum/minimum date
- valid time
### Strings
- username characters
- password characters
- password complexity
- email validity