Optimizing at route regex creation algorithm #33