Test, validate and match regular expressions
Matches Gmail email addresses by capturing one or more non-whitespace characters (\S+) followed by the literal '@gmail.com'. The \S+ portion greedily matches the local part of the address (letters, digits, dots, symbols), making it useful for extracting Gmail addresses from text, logs, or documents. Note that the dot in 'gmail.com' is unescaped, so it technically matches any character (e.g., 'gmail-com' would also pass). With global and multiline flags, it finds all occurrences across multiple lines.