Extracts all email addresses found in a block of text, rather than validating a single string like isEmail does.
Text to search for email addresses.
An array of the email addresses found, in the order they appear.
extractEmails('Contact us at hello@example.com or support@example.org for help.');// ['hello@example.com', 'support@example.org'] Copy
extractEmails('Contact us at hello@example.com or support@example.org for help.');// ['hello@example.com', 'support@example.org']
Extracts all email addresses found in a block of text, rather than validating a single string like isEmail does.