Avoid extra array allocations
Combine similar regexes
regex simplification wip