Skip to content

Instantly share code, notes, and snippets.

View matheop's full-sized avatar
👩‍🎤

matheop

👩‍🎤
View GitHub Profile
@matheop
matheop / global.emmet.json
Last active November 16, 2020 17:07
emmets for vs code
/* Comments */
"Comment style": {
"prefix": "comm",
"body": ["/* -----------------", "\t$0", "----------------- */"],
"description": "Sass style"
},
{
"tabWidth": 4,
"useTabs": true,
"singleQuote": true,
"trailingComma": "all"
}

Regex for a valid email:

^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$

Regex for strong password with:

  • at least 1 MAJ;
  • at least 1 min;
  • at least 1 number;
  • at least 1 special character (!@#$%^&*)
  • at least 8 characters length
(?=^.{8,}$)(?=.*\d)(?=.*[!@#$%^&*]+)(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$