Set min/max-length for search regex