remove Enter if line contains specific string
-
I want to edit an existing macro which removes the CR/LF if the line contains a specific string, such as:
Search for “GUIDO” (case sensitive)
Goto the end of the line
Press DELand repeat this for the whole document.
What is the best way to do this?
Best regards,
Guido -
Record your find/replace step and use
find what:(?-i)(.*GUIDO.*)(\R)
repalce with:\1
checkRegular expression
That should do it - I guess.
-
Hello Ekopalyse,
That works fine!
Thank you very much.