Skip to content

Instantly share code, notes, and snippets.

Last active Apr 1, 2021
What would you like to do?
public bool CheckIfStringHas3To7LowercaseCharsFollowedBy3or4Numbers(string password)
Regex stringHas3To7LowercaseCharsFollowedBy3or4Numbers = new Regex(@"[a-z]{2,7}[1-9]{3,4}")
var hasMatch = stringHas3To7LowercaseCharsFollowedBy3or4Numbers.IsMatch(password);
return hasMatch;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment