I have this regex that looks for a digit and a character in a word with a minimum length of 4 :
^(?=.*\d)(?=.*[a-zA-Z])[a-zA-Z0-9]{4,}$
it works for :
ABCD1
but if i have multiple words like :
ABCD1 ABCD2
it stop working because the whitespace break the regex :/
How can i improve my regex to allow to capture all the words separated by spaces ?