Test, validate and match regular expressions
This regular expression matches strings that begin with 3 to 16 characters containing at least one uppercase and one lowercase letter, followed by zero or more digits until the end of the line. It utilizes positive lookaounds to enforce the mixed-case requirement on the initial segment. Despite the title suggesting email validation, its structure makes it much more appropriate for strict username or password formatting rules.