There is a line that contains emails. If the string contains at least one non-email type gmail.com - the string is not valid.

igoer@gmail.com igoesdr@gmail.com igoer@MAIL.ru igoer@gmail.com sfkjhg@zuzu.com

I tried this: ^ (. + @ Gmail.com). * $ But does not work

  • Try ^\s*\S+@\S+(?:\s+\S+@\S+)*\s*$ - Wiktor Stribiżew
  • /(.*@gmail\.com)$/ui - user273447

0