isEmailValid

Validates if the string is a properly formatted email address.

This function uses a regular expression to check for a standard email format, ensuring it contains a local part, an '@' symbol, a domain name, and a TLD between 2 and 8 characters long. The check is case-insensitive.

Return

true if the string matches the email pattern, false otherwise.