On the question of regularity

user nicknames can only be composed of "numbers, uppercase and lowercase letters", and cannot be less than 2 or more than 20 digits.
let reg=/ ^ [a-zA-Z\ d] {2jinn 20} $/ , how do you write the juxtaposition of numbers and letters? All need to appear

Mar.20,2021

^\ d |\ w {2 hr class= 20}


let reg=/^[a-zA-Z0-9]{2,20}$/
Menu