I want to parse out email addresses from a string in PowerShell.
For example, given:
$email = "take this email test@mail.com"
$email2 = "secondmail@mail.com"
$email3 = "thirdmail@mail.com needs extracted"
I would get:
test@mail.com
secondmail@mail.com
thirdmail@mail.com
The domain is the same among all these strings, it will always be an username@mail.com address.
Any help is appreciated!