RegEx pattern work with JavaScript but not with html5 input

With help I findout two RegEx patterns:

[a-zA-ZaĄćĆęĘóÓńŃśŚźŹżŻ]{3,}s*[a-zA-ZaĄćĆęĘóÓńŃśŚźŹżŻ]*sd+|d+s[a-zA-ZaĄćĆęĘóÓńŃśŚźŹżŻ]{3,}s*[a-zA-ZaĄćĆęĘóÓńŃśŚźŹżŻ]*

https://regex101.com/r/pE3fL2/1

p{L}{3,}s*p{L}*sd+|d+sp{L}{3,}s*p{L}*

https://regex101.com/r/vC0bS9/1

As you see they are work with js but when I want to use them in input pattern, an input is always invalid.

How to make it works?


Source: html5

Leave a Reply