从正则表达式中的值中为NIFI中的几个对象删除零时发生错误

时间:2019-06-10 08:59:46

标签: regex

嗨,我有以下示例数据

  {
    "317":0,
    "320":0442323,
    "432":440000
    "321":0,
   },
   {
    "322":0,
    "323":"datariw",
    "329":0048483939,
    "331":09455115117,
    "332":"2063B4F3",
   }

现在我只需要删除大于零的数值的所有零(如果它只有一个零) 我已经尝试过了,但是效率不高

表达式:("[^"]+":)0{2,} 替换值:-$10

预期输出:-

{
    "317":0,
    "320":442323,
    "432":440000
    "321":0,
   },
   {
    "322":0,
    "323":"datariw",
    "329":48483939,
    "331":9455115117,
    "332":"2063B4F3",
   }

0 个答案:

没有答案