Javascript Validation Framework written on pure javascript with Regex