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