how to specify quantity of characters in regex js code example Example: numbered occurences in regex /^[a-z]{0,10}$/ {3} exactly 3 {6,} at least 6 {2,5} 2 to 5