JS 实现 url中的相关内容的替换var reg = (.*).*var str = "http:abc.demo.com.cnabc12345-6789.pdf"str = str.replace(reg,"$1ZZZZZ2023-04-18JavaScript130