Support Questions

Find answers, ask questions, and share your expertise

apache nifi replacetext processor - 'not a valid java regular expression' alert

New Contributor

Hi! I've got my expression working in The goal is to remove all strings that start with '{"categoryid"' and end with '"},'

Expression: /({"categoryid")(.*?)("},)/gi

Text: {"categoryid":140,"categoryname":"Seasonal-Halloween"},

I'm using the 'replacetext' processor

  1. Replacement strategy: Regex Replace
  2. Evaluation Mode: Entire text

Although it works in regexr, I get this alert in the processor: 'not a valid java regular expression'.

Does anyone have any suggestions of how I can achieve my goal? Thanks!




Super Guru

@Joseph Patrick

Try with below regex:

Search Value


New Contributor

Thanks for helping, @Shu! I now get this alert:


Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.