Sub multiple patterns

Support multiple substitution patterns in http_sub_module.