In NiFi, I have a flow file that contains the following text:
"description":"2025 : Source file is: [28793789, 23798840, 12909830, 12960083, 38070832]"},
After that flow file is received, i have an ExtractText processor that uses a regex that attempts to extract only the list of numbers, including the brackets:
(?<=Source file is: )[\d.*?]
In ExtractText, this regex is added under a property named "dimensions".
Once the flow file passes through this ExtractText processor, an attribute value is added to the flow file with the extracted numbers:
dimensions.0 [28793789, 23798840, 12909830, 12960083, 38070832]
It always contains a suffix of .0, indicating the first capture group.
is there a way i can just get the attribute to appear as dimensions instead of dimensions.0?
I would prefer not to add an additional UpdateAttribute processor and keep everything in the one ExtractText processor if possible.