Created 01-15-2018 12:02 PM
I am using extract text with replace text as below
Original string:
_fwip="abc" new fwip in context as new_fwip="[This is \"new_fwip\""] and other text
extract text properties
abc: (_fwip.*")\]
replace text properties
search value: .*
replace value: ${abc.1}
I am getting the value
_fwip="abc" new fwip in context as new_fwip="[This is "new_fwip""
In the replaced text I am missing \.
Can you please help me to understand why I am missing \
Thanks for your help
Created on 01-15-2018 03:33 PM - edited 08-18-2019 12:57 AM
I have tried with same configurations as you mentioned in the question in extract text and in replace text processors, The output flowfile contents from replace text processor resulting with \ in it.
Output:-
Here is my configurations:-
Extract Text:-
Output from extract text processor:-
abc attribute value having \ in it
Replace Text:-
As Regex Replace as Replacement Strategy
(Or)
Replacement Strategy as Always Replace
Output:-
Both of these Replacement strategies are resulting same output that i mentioned as first screenshot.
Once check the attribute abc value after Extract Text processor having \ in it or not.
If you still having issue then share your flow and configs of the processors please..
Created on 01-15-2018 03:33 PM - edited 08-18-2019 12:57 AM
I have tried with same configurations as you mentioned in the question in extract text and in replace text processors, The output flowfile contents from replace text processor resulting with \ in it.
Output:-
Here is my configurations:-
Extract Text:-
Output from extract text processor:-
abc attribute value having \ in it
Replace Text:-
As Regex Replace as Replacement Strategy
(Or)
Replacement Strategy as Always Replace
Output:-
Both of these Replacement strategies are resulting same output that i mentioned as first screenshot.
Once check the attribute abc value after Extract Text processor having \ in it or not.
If you still having issue then share your flow and configs of the processors please..