i'm having troubles to try to form a regex to make a match from a string to get the email only, the string would be like this: 'Hello we have sent an email to ***foo@hotmail.com check it"
I would like a match that only returns ***foor@hotmail.com and i have tried this with a being the string:
a.match(/\b(?=\w*[@*.])\w+\b/g)
//expected ***foor@hotmail.com
But this only return [foo][hotmail] not even the .com.
Can you help me?
Thank you in advance!