Hi Zell, great article!
This regexp should work: \s?\S+.*
it means: 1 optional space followed by at least one non space followed by whatever.
I tested it and:
Damn this is good CSS stuff. Awesome post Zell.
Try pattern=“\S+“ which means has to contain 1 or more non-white-space characters
Since pattern works like new RegExp('^'+pattern+'$'), this won't work if there are white-space characters in the input value.
thanks for great investigation! Could you please reveal browser support for this method?)
This is pretty cool. Thanks for sharing Zell. :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.