const MAX_SUBPATTERNS: usize = 5;
The number of subpatterns after which using regexes would be more efficient.