s g{.*?}g{$sub[$n++]}gg; [download]
-- John.
In reply to Re: Whats your favorite nonstandard regex quote char? by jmcnamara in thread Whats your favorite nonstandard regex quote char? by demerphq