manual regex routing tips