Just to clarify: you basically want to trim the extra characters from the
beginning and end of your XML fragment, right?
It's possible with the ReplaceText processor, with the following settings:
- search value: (?s).*(<FLIGHT-IN>.+</FLIGHT-IN>).*
- replacement value: $1
- replacement strategy: regex replace
- evaluation mode: entire text
I don't know how performant this is and if there is a better way to do
> Hi Team ,
> I am relatively new to Nifi regex .
> i have a requirement like i have a flow file content as below .
> And the expected out put is
> i know we can achieve the same with replace text and nifi expression
> language but not sure how .
> Quick help is highly appriciated.
> Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/ >