Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 931 Bytes

README.md

File metadata and controls

47 lines (39 loc) · 931 Bytes

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/>');