I have an an email type input which has an email validation pattern attribute set up that doesn't seem to trigger as expected.
<form>
<input type="email" placeholder="enter your email" pattern="[A-Za-z0-9._+\-\']+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,}$" required>
<button>submit</button>
</form>
It's kind of weird cause part of it works. The regex exp is supposed to be matched only after some text and a dot and some text again is added after the @
sign. But is also matched instead with no dot and characters after a someText@sometext
pattern. I've tested it on some online tools like regextester and works fine.