【问题标题】:Apache NiFi ReplaceTextApache NiFi 替换文本
【发布时间】:2020-07-22 06:31:09
【问题描述】:

我正在尝试更换管道 |使用 ReplaceText 处理器换行,而是将所有内容放在新行上,而不仅仅是管道之后的所有内容

【问题讨论】:

  • 如果你能分享你正在使用的代码会很棒

标签: java regex etl apache-nifi


【解决方案1】:

只需设置'|'在搜索值 比打开 ReplaceValue 并在编辑框中按 Shift+Enter。 并将替换策略更改为字面替换。

【讨论】:

    【解决方案2】:

    我通过在 SearchValue 上使用 \| 然后在 ReplaceValue 上解决了这个问题,我在编辑框中使用了 Shift+Enter。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-01-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-11
      • 2014-08-19
      • 1970-01-01
      • 2020-10-01
      相关资源
      最近更新 更多