Supported method

Download

swc Donwload swc file

1955Downloads

Exemple

Comming soon

Usage

import com.mutationevent.data.Validation;
var v:Validation = new Validation();

trace("empty", v.isEmpty("helloWord!"), v.isEmpty(""));
trace("EmailAddr", v.isEmailAddr("test@test"), v.isEmailAddr("test@test.com"));
trace("MD5", v.isMD5("d6aa97d33d4"), v.isMD5("d6aa97d33d459ea3670056e737c99a3d"));
trace("hasValidChars", v.hasValidChars("helloworld", "ehlowrd", false));
trace("AlphaLatin", v.isAlphaLatin("hello^รจ!"), v.isAlphaLatin("hello"));
trace("IntergerInRange", v.isIntergerInRange(100, 0, 200), v.isIntergerInRange(5, 6, 30));
trace("Num", v.isNum(0), v.isNum("k"));
trace("URL", v.isURL("http://www.mutationevent.com"), v.isURL("www.test.com"),v.isURL("ftp://domaine.com"));
trace("Guid", v.isGuid("12524592-2432-1286-4564-123435222879"), v.isGuid(""));			
trace("Equal", v.isEqual("hello", "hello"), v.isEqual(true, 1));
trace("isISBN", v.isISBN('ISBN 99921-58-10-7'), v.isISBN('ISBN 0-9752298-0-X'));
trace("isSSN", v.isSSN('234-32-8743'), v.isSSN('234-32-874'));
trace("isZipCode", v.isZipCode('08540', 'US'), v.isZipCode('12220'), v.isZipCode('12220', 'FR'));