Skip to content

Instantly share code, notes, and snippets.

@AngelCruzL
Forked from Klerith/regular-exp.ts
Created December 10, 2023 13:21
Show Gist options
  • Save AngelCruzL/6a8ef42eb29f82d100cc68ca689f7daa to your computer and use it in GitHub Desktop.
Save AngelCruzL/6a8ef42eb29f82d100cc68ca689f7daa to your computer and use it in GitHub Desktop.
Validadores usando expresiones regulares
export class Validators {
static get email() {
return /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment