http://qs1969.pair.com?node_id=718995


in reply to Replace after match in regex (key value subsitution)

I'd write that as (untested):
$$text_ref =~ s{"http://\K([^/"]*)(?=["/]){$main::fixers{$1} // $1}eg;
I assume non of the values of %main::fixers is undefined.