const fileName = "filename=xxxx.xlsx" const reg = /[filename=]["]*/ 拆解:[^filename=] 匹配除“filename=”字符以外的 [^"]*匹配除 " 任意字符