我想用“X”替换日志上的所有数字,但我想保留 HTTP 状态代码以获取信息。我一直在尝试不同的方法。他们都没有工作。str.replaceAll("(?!5\d\d|4\d\d)\d{3}", "X") //Didn't worked
// Error trying to POST to /shipments/X5X5X/select?caller.id=XX592: 500 INTERNAL_SERVER_ERROR我需要它是:从:Error trying to POST to /shipments/28056415973/select?caller.id=116089592: 500 INTERNAL_SERVER_ERROR到:Error trying to POST to /shipments/XXXX/select?caller.id=XXXX: 500 INTERNAL_SERVER_ERROR
1 回答
慕田峪4524236
TA贡献1875条经验 获得超5个赞
添加回答
举报
0/150
提交
取消