how do i check a user input string with email format
<p>How do i check if user input a string with an email format,</p>

<p>E.g. <code>Ted@Ted.com</code></p>

<p>I want to check if there's an "@" and "."</p>

<p>other than using ispunct function</p>
