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.

Revisions

  1. @Klerith Klerith created this gist Sep 15, 2023.
    10 changes: 10 additions & 0 deletions regular-exp.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@

    export class Validators {


    static get email() {
    return /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/;
    }


    }