I want to replace all space occurrences between string1 and string2 with a _ character on all lines of a text document using Notepad++.
Examples:
string1 this is a first example string2
string1 this is a second example string2
Expected result:
string1_this_is_a_first_example_string2
string1_this_is_a_second_example_string2
I tried this expression (?<=string1)(\s*)(?=string2), but it didn't work.
