Help for this page
# For the sake of the discussion lets ignore the fact the # curlies didnt need to be escaped. s!{.*?}!{$sub[$n++]}!g; s:{.*?}:{$sub[$n++]}:g;
s#{.*?}#{$sub[$n++]}#g;