我有一个看起来像这样的 JSON:{"firstName":"Gabriela","id":9153,"language":"en","lastName":"Manriquez","login":"gmanriquez_training","profileCodes":"[role1","role2","role3","role4","role5 ]","status":"A","statusName":"Active"}我想从 [ 分隔符内部提取 ",这是预期的结果:{"firstName":"Gabriela","id":9153,"language":"en","lastName":"Manriquez","login":"gmanriquez_training","profileCodes":"[role1,role2,role3,role4,role5]","status":"A","statusName":"Active"}我试过这个正则表达式:(?i)(?:\G(?!\A)|profileCodes\"\:\s*\")[^\]"]*\K\"但是 \K 在我想要实现它的引擎中不受支持,因为该标志不适用于 java。有没有办法在不使用 \K 的情况下获得相同的结果?
添加回答
举报
0/150
提交
取消