Sublime Forum

Edit several specific Lines at once

#1

Hi,

I wanna get rid of the mm:ss Timecode at the end of a few lines:

52

I know with ⌘ + A and ⌘ + ⇧ + L I can Blockedit the document … But this is not useful, because this mm:ss TC is not present in every line.

Is that even possible?!

Please note, this is only an example, the document I’m working on has over 2.600 lines

Thankful for any advice!

0 Likes

#2
  • You can learn regex and use it in the find panel to select all of them.
    • Regex replace (\d+:\d+:\d+:\d+\s+\d+:\d+:\d+:\d+)\s+\d+:\d+ with \1.
  • Plus, holding cmd/ctrl (?) while clicking will add another cursor.
1 Like

#3

Wow, thanks!
It works, but I have no idea how and why :rofl:

0 Likes

#4

Can you explain a little further? Doesn’t work for me

0 Likes

#5

not sure about Mac’s keybinding since I don’t have one.

0 Likes