Replace tilde (~) with headword
-
Hi, @glossar,
Ah… OK ! If you want to get rid of the
\
character, as well, just use this modified version of the second regex :-
SEARCH
(?s)\x20\K\\~(?=.+?^(\w+))|^\w+\R(?=\w+|\Z)
-
REPLACE
?1\1
BR
guy038
-
-
Hi guy!
Thank you for effort.
FYI, I’ve applied this last one as well as the second one on another file. Sadly, both didn’t work well, leaving 10K-20K tildes behind.
Greetings,
glossar