Test, validate and match regular expressions
Matches any string that contains between 3 and 50 characters. The dot in regex matches any character except line break characters, so this pattern is commonly used for length validation on inputs like usernames, titles, or short text fields. It ensures the input is neither too short nor too long.