Currently I am using a pattern element to verify whether an email contains a specified domain:
<input type="email" id="ms_email" name="ms_email" required placeholder="Corporate Email address" **pattern="\w+@barclays\"** oninvalid="this.setCustomValidity('Please enter your corporate email')" style="float:left; margin-left: 20px; clear:right;">
But now I want it to validate if email contains 'x' or 'y'.
What would be the best way? As pattern only seems valid for one domain not more than 1.
Thanks