List 1
text1
text2
text3
text4
List 2
value1
value2
value3
value4
Result
text1=value1
text2=value2
text3=value3
text4=value4
How do I do this in Notepad++?
Follows my solution.
First, concatenate the two lists separating them by a special character (in the following, I will use §
):
text1
text2
text3
text4
§
value1
value2
value3
value4
Then:
^(?!§$)(?!.*=)(.*)([\w\W]*?^§\r?\n)(.*)\r?\n?
$1=$3$2
Replace
key.