I would like to add a term after an nth term with the previous term substituted in. For instance, how would I change the following in notpad++:
x1 y1 z1 a1 b1 c1
x2 y2 z2 a2 b2 c2
x3 y3 z3 a3 b3 c3
to
x1 y1 z1 [“z1“] a1 b1 c1
x2 y2 z2 [“z2“] a2 b2 c2
x3 y3 z3 [“z3“] a3 b3 c3
where x, y, z, a, b and c are strings seperated by spaces.
another example:
apples bananas pears grapes oranges lemons
to
apples bananas pears grapes fruit:(grapes) oranges lemons
and so on.
in the find put…
in the replace put
See this question for more info.
NotePad++ replace problem
I guess this would also make sense for the find…
for your example… if it was the 3rd item it would be
find:
replace