Regular Expression For At Least One Number August 1, 2023 by Tarik Try using this pattern .*[0-9].* For 6 to 20 use this ^(?=.*\d).{6,20}$