Find and replace certain line breaks in Microsoft Word

tomasacus 0 Reputation points
2023-03-03T21:00:27.1366667+00:00

Hello

I wanna remove all unnecessary line breaks in subtitle files.

Here is a subtitle from Malcom in the Middle and I wanna go from this

501 00:20:43,776 --> 00:20:45,278 I'm really not a bad guy. 502 00:20:45,312 --> 00:20:49,115 Anyways... thanks.

to this

501 00:20:43,776 --> 00:20:45,278 I'm really not a bad guy. 502 00:20:45,312 --> 00:20:49,115 Anyways... thanks.

As you can see, the first line "I'm really not a bad guy." is one line only insted of two lines. The second line remained intact.

So there is my question: Can I do some find and replace code to help me remove all line breaks between two words that are in a separate line?

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
714 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,641 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. tomasacus 0 Reputation points
    2023-03-03T21:02:08.3633333+00:00

    The quotation screwed it up:

    Old one:

    501

    00:20:43,776 --> 00:20:45,278

    I'm really

    not a bad guy.

    502

    00:20:45,312 --> 00:20:49,115

    Anyways... thanks.

    New one:

    501

    00:20:43,776 --> 00:20:45,278

    I'm really not a bad guy.

    502

    00:20:45,312 --> 00:20:49,115

    Anyways... thanks.

    0 comments No comments