Hi,
Is there an easy automated way to remove lines that consist only of musical symbols and no other text?
In the "Remove text for hearing impaired" options I can specify the musical symbols that I want to remove, but I can't see a way to distinguish between a line that contains just a single "♪" (which I want to remove) and a line that contains "♪ <lyrics> ♪" (which I want to keep). I would have to manually go through all the lines found and deselect the ones with lyrics.
Or is there an option somewhere else to remove all subtitle lines that contain just one character?
+ Reply to Thread
Results 1 to 3 of 3
-
-
remove all subtitle lines that contain just one character
this code will remove all lines that contain the single character ♪
Code:sed -e "/^\xe2\x99\xaa$/d" subtitle.srt
-
Thanks, that'll do the job.
And it led me to discover that Subtitle Edit's Multiple Replace function supports regular expressions. So if I search for ^.{0,1}$, I can find all empty or single-character lines and replace them with null.
Even better, I can streamline this action this by including "multiple replace" among the Batch Convert options I have configured for Subtitle Edit.
Similar Threads
-
subtitle edit is auto breaking lines
By cocowash in forum SubtitleReplies: 2Last Post: 8th Dec 2024, 15:33 -
To delete empty lines and lines with music symbols in subtitle edit at once
By Pusat in forum SubtitleReplies: 2Last Post: 9th May 2023, 11:20 -
Subtitle Edit manual spacing of lines
By loninappleton in forum SubtitleReplies: 14Last Post: 11th Sep 2022, 18:40 -
Is there a way to restrict Subtitle Edit to a single instance
By Screech01 in forum SubtitleReplies: 2Last Post: 1st Jul 2022, 20:43 -
Subtitle Edit multiple lines: how to?
By lollozip in forum SubtitleReplies: 1Last Post: 15th Jan 2019, 14:58