After some research I found that existing libraries doesn't fit my requirements. So, of course, I have written my own:
https://github.com/EfogDev/react-process-string
It is very easy to use. Your case example:
let result = processString({
regex: /:/gim,
fn: () =>
})(this.props.test);