The next record is a json flowfile response from Rest Api, i got it after an InvokeHTTP:
{
"data": [
{
"description": "\n\n\"s, lorem Epsom jdfg\n\"",
"offer": "new_one",
"state": "save"
},
{
"description": "\n\n\" a long text \n\"",
"offer": "offer_two",
"state": "save"
}
],
"info": {
"per_page": 200,
"count": 195,
"page": 1,
"more_records": false
}
}
The next step was EvaluateJsonPath to get the list of records inside "data".
data = $.data
What i should do next is to clean the description text, by removing the new line characters \n and the "
I created the next regex expression to filter the non-needed chars but it doesn't work.
[\n|\"](?=[^,\"]*\"\s*:)
I need the regex expression that remove the chars listed above from json record values.
