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