How would you create a regular expression for a value that should contain at least one number? The user can enter any special character, letter etc., but should contain at l
Try using this pattern
.*[0-9].*
For 6 to 20 use this
^(?=.*\d).{6,20}$