Test, validate and match regular expressions
This regular expression validates email addresses based on specific formatting rules, commonly associated with Microsoft's email guidelines. It checks the local part (before the @) for allowed characters including alphanumerics, dots, underscores, and hyphens, while ensuring the domain part (after the @) contains a valid structure and a top-level domain between 2 and 13 characters. It is ideal for validating user input in forms or processing data to ensure it meets these particular email formatting standards.