Last active
August 25, 2023 19:29
-
-
Save mcsee/00c30c369fe7339e28d50f858392cf4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public bool CheckIfStringHas3To7LowercaseCharsFollowedBy3or4Numbers | |
(string textToCheck) | |
{ | |
Regex regex = new Regex(@"[a-z]{2,7}[1-9]{3,4}") | |
var bool = regex.IsMatch(textToCheck); | |
return bool; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment