I am in the process of using pattern for my email input field (HTML for email) to be 1234567Z@student.glasgow.ac.uk
see code snippet below, I am not getting glasgow as full (only gla appears).
Have tried to manipulate this part of the email with various other strings but unable to get the correct format as outlined earlier.
Any reason why I am getting this with the code:
Email address:
<input name="email" type='email' pattern=".+ (@student.glasgow.ac.uk)" required />
<input style="float: right;" type="submit" name="submit" value="Subscribe"/>
</form>
you can try by this code
<input type="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" />