I have a block of text, and for each regular expression I want to substitute this correspondence with the return value from another function. The argument for this function is, of course, a consistent text.
I am having trouble trying to come up with a one-pass solution to this problem. It seems like it should be pretty simple.
source
share