问题 I need to find and replace values in my object when they match a regular expression (e.g. **myVar**); The object that I need to loop through is user defined and structure varies. Here is an example object, shortened for simplicity. var testObject = { name: "/pricing-setups/{folderId}", method: "POST", endpoint: "/pricing-setups/:folderId", functionName: "create", Consumes: null, filename: "apicontracts/pricingsetups/PricingSetupServiceProxy.java", pathParam: [ {$$hashKey: "06S", key: