Sutitles fix: Magic into the clipboard? How to delete a repeating pattern and leave all the other text as it is?

The repeating pattern (timecode varies of course):

1576
01:14:04,440 --> 01:14:05,780

(which would vary).....

Some text (from subtitles):

1576
01:14:04,440 --> 01:14:05,780
what's optimal daily allowance means. Which is good for 100 reasons.

1577
01:14:06,380 --> 01:14:09,970
That it's got to be much stronger than the RDA the recommended

Desired end result:

what's optimal daily allowance means. Which is good for 100 reasons.
That it's got to be much stronger than the RDA the recommended

@KM_Fan_1968, as I have asked several times, always post your source text and desired results in a Forum Code Block. If that link is not clear, please ask how to use it.

This time, I have edited your post to put them in Code Blocks.
This is very important because other with multiple spaces and TABs will NOT be retained by the Forum software.

Here's an example to get you started.


Example Results

image


MACRO:   Remove LInes Starting with Numbers [Example]

~~~ VER: 1.0    2019-04-08 ~~~

DOWNLOAD:

Remove LInes Starting with Numbers [Example].kmmacros (3.7 KB)
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.


image


RegEx to Remove Lines:
(?m)^\d+.+\R

For more info on the RegEx that was used, see:

1 Like

Thanks! I will look into:

Just to see if I understand you correctly. Is the quoted text above in the "Forum Code Block"? Please have patience with me as I am still not certain.

No. In the case of showing just one line, you can put the entire text between back-ticks:

 `some text between back-ticks`

What is the point of doing it like that? That the word" text" pops out in blue?

The purpose of using Code Block for multi-line text is to preserve all characters as typed/pasted into the forum post. If you don't want any syntax highlighting, use "text" as the language.