Can anyone tell me what is the mistake, my .com example is not working properly Answer You need A grouping construct instead of character classes A regex literal notation so that you do not have to double escape special chars The ^ anchor at the start of the pattern since you need both ^ and $ to make the pattern
Tag: email-validation
Checking if an email is valid in Google Apps Script
I’m using the built-in api for scripting against Google Spreadsheets to send some booking confirmations, and currently my script breaks if someone has filled in an invalid email. I’d like it to just save some data to a list of guests that haven’t been notified, and then proceed with looping through the bookings. This is my current code (simplified): According