support parsing of regexp replace