Skip to content

Instantly share code, notes, and snippets.

@trainingLeader
Forked from Klerith/validator-patterns.ts
Created August 22, 2025 13:06
Show Gist options
  • Select an option

  • Save trainingLeader/41ebdf4bd82eb6981d40472f5b5cf54a to your computer and use it in GitHub Desktop.

Select an option

Save trainingLeader/41ebdf4bd82eb6981d40472f5b5cf54a to your computer and use it in GitHub Desktop.
Expresiones regulares para validar elementos
static namePattern = '([a-zA-Z]+) ([a-zA-Z]+)';
static emailPattern = '^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$';
static notOnlySpacesPattern = '^[a-zA-Z0-9]+$';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment