A regexp switch based, efficient router.