Saturday 28 July 2018

Regular Expression for validate Multiple Email




<!DOCTYPE html>
<html>
<body>


<form action="/action_page.php">
Email Id's(For multiple use';' Ex: arul@mail.com;arul2@mail.com) 
<input type="text" name="EmailId" 
pattern="^((\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)\s*[;]{0,1}\s*)+$" 
required title="Email id's">
<input type="submit">
</form>


<p><strong>Note:</strong> The pattern attribute of the input tag is not supported in Internet Explorer 9 and earlier versions
or Safari 10 and earlier.</p>


</body>
</html>

No comments:

Post a Comment