An open API service indexing awesome lists of open source software.

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

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