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 expressionThat should do it - I guess.
-
Hello Ekopalyse,
That works fine!
Thank you very much.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login