Make rxx_replace behave correctly with zero-length matches

`"0123"|replace(r{^0*}, '')` no longer evaluates to the empty string