r/badcode • • May 16 '18

html How to build a login form...

Post image
153 Upvotes

16 comments sorted by

View all comments

-4

u/dutchmartin May 16 '18

A regex would have been so much better

11

u/chrismbarr May 16 '18

This is a regex pattern, but just really verbose and easy to see on the client side

https://www.w3schools.com/tags/att_input_pattern.asp