Subtitleedit: [Question] Batch Change Color SRT

Created on 17 Feb 2019  路  4Comments  路  Source: SubtitleEdit/subtitleedit

Hi
I have a question. I wanted to know is it possible to select for example 10 srt files and change the color of all subtitles together, for example to yellow?

Thanks

Most helpful comment

Hey. Yeah, it's possible, but not in a direct way.
Follow these steps:

  1. Open Batch convert from the tools menu.
  2. Open all of your files.
  3. Activate Multiple Replace and press the "Settings" next to it.
  4. Add a "Regular Expressions" rule. Replace (?s)\A(<font color=".+?">)?(.+?)(</font>)?\z with <font color="#ffff00">$2</font>, this would remove any existing colors from all lines and add yellow, the rule would change depending on what you have in your file but this would work if there are no tags or if there are color tags, it would remove them and add yellow.
    But if you just want to change the color of lines that don't have a color, the rule would change.
  5. Press Convert then OK and you'll have you file. :D

All 4 comments

Hey. Yeah, it's possible, but not in a direct way.
Follow these steps:

  1. Open Batch convert from the tools menu.
  2. Open all of your files.
  3. Activate Multiple Replace and press the "Settings" next to it.
  4. Add a "Regular Expressions" rule. Replace (?s)\A(<font color=".+?">)?(.+?)(</font>)?\z with <font color="#ffff00">$2</font>, this would remove any existing colors from all lines and add yellow, the rule would change depending on what you have in your file but this would work if there are no tags or if there are color tags, it would remove them and add yellow.
    But if you just want to change the color of lines that don't have a color, the rule would change.
  5. Press Convert then OK and you'll have you file. :D

Hey @OmrSi Thank you so much for helping, this works great <3

You got it! ^_^

Close? @niksedk , @amiremami

Was this page helpful?
0 / 5 - 0 ratings