我想用“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
慕田峪4524236
相关分类