Skip to content

miguelcalderonb/regexall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

regexall

jQuery extension with standards regex.

Why?

In each project must use regular expressions to validate data and each project has different data, but in the future it will need some regular expressions that already did, but you won't remember where is that code. That is why the regexall extension, leave to remake the code and stop repeat code.

Quick start

Include regexall js in your html after include jQuery library

<script src="regexall.js"></script>

then run

$.regexall('email', '[email protected]');

Examples

validate email

$.regexall('email', '[email protected]');

validate number

$.regexall('number', '1');

validate decimal

$.regexall('decimal', '1.202');

validate ip

$.regexall('ip', '192.168.0.1');

validate domain

$.regexall('domain', 'http://krakeincode.com');

validate html tag

$.regexall('htmlTag', '<mytag/>');

About

jQuery extension with standards regex

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published