regex: how to replace all occurrences of a string within another string, if the original string matches some filter
问题 i need to replace all occurrences of a string within another string, if the original string matches some filter i can only use a single regex using an s command, because i need to send the assembled command to a 3rd party API i have tried to use positive lookahead as to not consume the string in which i want to replace characters, but somehow i can not get the replacing to work as expected. here is what i have tried so far and what was the outcome: (note that the filter - here [0-9]+ is just