Map an argument to one or more values based on regexp matches