If you paste it into https://regex101.com/ you get this explanation. I suggest you use this site to experiment and understand. Also the explanation is formatted in a much better way
If you want to learn regex you need to start with something simpler
^ asserts position at start of a line
Positive Lookahead (?=.*
\d)
Assert that the Regex below matches
. matches any character (except for line terminators)
*
matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)
\d matches a digit (equivalent to [0-9])
Positive Lookahead (?=.*
[a-z])
Assert that the Regex below matches
. matches any character (except for line terminators)
*
matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)
Match a single character present in the list below [a-z]
a-z matches a single character in the range between a (index 97) and z (index 122) (case sensitive)
Positive Lookahead (?=.*
[A-Z])
Assert that the Regex below matches
. matches any character (except for line terminators)
*
matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)
Match a single character present in the list below [A-Z]
A-Z matches a single character in the range between A (index 65) and Z (index 90) (case sensitive)
Positive Lookahead (?=.*
[^a-zA-Z0-9])
Assert that the Regex below matches
. matches any character (except for line terminators)
*
matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)
Match a single character not present in the list below [^a-zA-Z0-9]
a-z matches a single character in the range between a (index 97) and z (index 122) (case sensitive)
A-Z matches a single character in the range between A (index 65) and Z (index 90) (case sensitive)
0-9 matches a single character in the range between 0 (index 48) and 9 (index 57) (case sensitive)
Negative Lookahead (?!.*
\s)
Assert that the Regex below does not match
. matches any character (except for line terminators)
*
matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)
\s matches any whitespace character (equivalent to [\r\n\t\f\v ])
Global pattern flags
g modifier: global. All matches (don't return after first match)
m modifier: multi line. Causes ^ and $ to match the begin/end of each line (not only begin/end of string)