Ruby regular expressions validate passwords

  question, ruby

1 must contain numbers, uppercase letters, lowercase letters
Does not contain special characters
3 not less than 6 characters
What I write below cannot filter special characters
/^(? ! [0-9a-z]+$)(? ! [a-zA-Z]+$)(? ! [0-9A-Z]+$)w{6,}/
Please help me change it

1 /^(? ! [0-9a-z]+$)(? ! [a-zA-Z]+$)(? ! [0-9A-Z]+$)[0-9a-zA-Z]{6,}$/
2 /(? =.[A-Z])(? =.[a-z])(? =.*[0-9])^[a-zA-Z0-9]{6,}$/