regex limit characters code example
Example 1: regex min length max length
// Validate string length
/^.{1,35}$/.test(variable) // min - 1, max - 35
Example 2: numbered occurences in regex
/^[a-z]{0,10}$/
{3} exactly 3
{6,} at least 6
{2,5} 2 to 5