Regex get whole word email : <p>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"</p>

<p>I would like a match that only returns ***foor@hotmail.com and i have tried this with a being the string:</p>

<pre><code>a.match(/\b(?=\w*[@*.])\w+\b/g)
//expected ***foor@hotmail.com
</code></pre>

<p>But this only return [foo][hotmail] not even the .com.</p>

<p>Can you help me?</p>

<p>Thank you in advance!</p>
