This method accepts regex expressions as arguments to check the string and returns the position of the specified value in the string or a -1 if no match was found.
If the search() method returns a -1, then an alert would tell the user that an invalid email address has been entered and returns a false value.
Once you’ve inserted our script onto your site, the real-time verification will be active on your website. Within minutes of updating your source code your email list will be more accurate than ever, giving your email marketing campaign the best chance of success.
This type of verification helps you and the customer.