0

I've been able to figure out some simpler wildcard searches before but this one is kicking my butt and I'd love some help.

Here's some of the text in my MS Word document:

decidere v1 (v11)

decido, is, ere, cidi (63) : to fall/drop/hang/flow down; to sink/drop; to fail, fall in ruin; to end up, to die; —decidere perfect indicative active 3rd plural

usque r

usque, prep. + acc (598) : up to (name of town or locality); —usque

In every line that contains commas, I want to cut everything from the first comma (inclusive) to the paragraph return (exclusive). In other words, when I'm done I want the text to look like this:

decidere v1 (v11)

decido

usque r

usque

Is there a way that I can do this using wildcards?

Thanks so much for your help.

Destroy666
  • 12,350

1 Answers1

1
  1. Place cursor at the beginning of the document
  2. Press CTRL + H to open the “Find and Replace” function
  3. In the bottom left click on “More” and then activate the “Use wildcards” option
  4. In the “Find what” field type ,*^13
  5. In the “Replace with” field type ^p
  6. Click on “Replace All” enter image description here

Explanation: The * will combine everything between the first comma and the line break (^13). Usually you should also be able to use ^13 in the replace field to insert the line break again, but I found that this sometimes create a weird error. If you use ^p instead, it will work properly.

Loeli
  • 943
  • 1
  • 4
  • 11