Member since
09-29-2021
1
Post
0
Kudos Received
0
Solutions
09-30-2021
01:39 PM
1 Kudo
@VagnerBelfort From your example, it appears you are looking to modify only the first line of your input file and your modification seems pretty simple. In that case, one possible solution is simply to use the ReplaceText processor to modify that first line to match you new modified structure. Here is a ReplaceText processor configuration I used to accomplish your desired output: Search Value (Java regular Expression): ^"(.*?)":"(.*?)":(.*?)\{ Above contains 3 capture groups to capture the unique parts of your input we want to reuse. Replacement Value: {
"hash":"$1:$2:$3", Make note of the added line return. All characters are literals except the $1, $2, and $3 which get replaced with the string form each of the three capture groups from the Java Regex. Replacement Strategy: Regex Replace Evaluation Mode: Line-by-Line Line-by-Line Evaluation Mode: First-Line If you found this response assisted with your query, please take a moment to login and click on "Accept as Solution" below this post. Thank you, Matt
... View more