renamed variable rs to regex_constructor_map