What are the advantages and disadvantages of using the provided regular expression for email validation in PHP?

The provided regular expression for email validation in PHP may not cover all possible valid email formats and may reject some valid email addresses. To improve the accuracy of email validation, it is recommended to use a more robust regular expression pattern that adheres to the official email standards.

$email = "example@example.com";

if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
    echo "Valid email address";
} else {
    echo "Invalid email address";
}