Regex help for UserName and Password [closed]

cvbbvc

New Member
I need help with two regular expressions (ASP.NET app). This is what I need:Username:[*]Usernames may contain letters (a-z), numbers (0-9), dashes (-), underscores (_), apostrophes ('}, and periods (.), and may not contain an equal sign (=) or brackets (<,>). They can't contain more than one period in a row.[*]must contain at least one letter; digits are allowed but not requiredcannot contain spaces[*]no special characters are allowed, such as !, #, $, %, &, (, ), *, +, /, ?, \, ^, |, ~[*]underscore and "." (dot) is allowed[*]cannot start with a space or underscorePassword:[*]Passwords may contain any combination of ASCII characters, but a minimum of 8 characters is required.[*]cannot contain spaces[*]are case sensitiveI found this link helpful to start with but still it is missing lot of things.Need regular expressions for username and password
 
Back
Top