Speedup by limiting the max regex runs per line to 2 instead of 3