How format srt file error
-
This is my srt file:

How to change it like this:

-
Given the example data and assuming a Windows formatted document, the following regex should work:
Search: (?s)^(\d+)\R+?(\1)\R*?(?=\d+:\d+:\d+,\d+) Replace: \r\n$1\r\nPut the caret at the very beginning of the document, select the
Regular Expression modeand click onReplace All.Hope this helps.
-
@astrosofista
This is amazing!! A great solution.
I spent a long time looking for a solution. Thank you very much! -
Glad the provided regex worked for you. If you frequently run into this kind of issues, I would suggest you to read the regex guide in the FAQ section of this forum and start learning how to develop your own solutions. It could be hard but rewarding.
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