I've looked and found so much information for regex. It's super well documented, but I'm clearly being an idiot, or have looked at this issue for too long!
The pattern I need to match is any number of upper case, lower case and numbers, with at least 8 characters. I don't want to accept anything else, such as non-alphanumeric characters (_ *^& etc)
My effort is
^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])\S{8,}$
Sadly, when I use https://regex101.com/ this does not match any of the following
aaaaaaaa
AAAAAAAA
00000000
asdfFDSA167
#fFaf9374A
12345678
123456NBh
2 of those are valid but I don't see why I'm having issues
The end goal is to use this in the pattern
attribute for input
(HTML 5 input pattern="" />`)