js正则表达式 URL格式匹配 http替换成https BG7ZAG | 2019-3-17 11:58 | 1,700 | 0 | 程序开发 469 字 | 4 分钟 URL格式: protocol :// hostname[:port] / path / [;parameters][?query]#fragment [;parameters]没见过 这里就不做相关匹配了 代码: 'use strict'; { // URL地址匹配格式: protocol :// hostname[:port] / path /… http替换成httpsjs正则URL格式匹配正则替换正则表达式