Skip to content

Instantly share code, notes, and snippets.

@vinirossa
Last active October 11, 2021 12:18
Show Gist options
  • Save vinirossa/8bb69a775b799544a4f1a827f7fce152 to your computer and use it in GitHub Desktop.
Save vinirossa/8bb69a775b799544a4f1a827f7fce152 to your computer and use it in GitHub Desktop.
Useful Regex Expressions
# Useful Regex Expressions
[a-z] = letras minúsculas
[A-Z] = letras maiúsculas
[\d] = números
[àèìòùáéíóúâêîôûäëïöüãõ] = letras minúsculas e maiúsculas acentuadas
[\p{Letter}] = letras minúsculas e maiúsculas acentuadas e cedilha
[ç] = cedilha
[`´^~¨] = acentos
[.:,;\-_<>=+*!?)(}{|''""\][\\/] = sinais de pontuação
[@#$%&] = símbolos
[\s] = espaços
[\n] = quebras de linha
(?![ -~ç´¨àèìòùáéíóúâêîôûäëïöüãõ\n]). = caracteres non-unicode
[^\p{Letter}\d`´^~¨.,;\-_<>=+*!?)(}{|'"\][\\/@#$%&\s\n] = caracteres non-unicode
[a-zA-Z\dàèìòùáéíóúâêîôûäëïöüãõç`´^~¨.:,;\-_<>=+*!?)(}{|'"\][\\/@#$%&\s\n]
[\p{Letter}\d`´^~¨.:,;\-_<>=+*!?)(}{|'"\][\\/@#$%&\s\n]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment