These files are subtitles for a drama, [a][c] is to fit the videos' file name that allow the player loading the corresponding subtitle automatically. (Very very common naming strategy)
Suggestion:
I tried rename them directly at first, but TC rename tools take single "[" "]" as an expression, so I had to make it like [[][C][]] to finish "[ORDER]", very difficult to read and modify
Maybe TC could choose an unaccepted character instead of the current "[]" would solve that, like "<>"
[a][<C>][c].ass
Help:
Anyway, I try regex expression like:
.*([[0-9][0-9]]).*
[a]\1[c].ass
which ([[0-9][0-9]]) suppose to capture "[order]", but obvious failed.
how can I call that captured group?
Last edited by dindog on 2014-03-22, 15:45 UTC, edited 1 time in total.
Yes, it is hard to read/write templates with many brackets... But I doubt that someone will change format.
You can read TC help topic concerning regular expression syntax, you need $1 for first captured group etc, also special characters must be escaped as Ovg said.
Try name template [N]$[C] and regex replace \[[0-9a-f]+\](_Track[0-9]+)\$([0-9]+)$ with \[$2\]$1 (uncheck all options except RegEx).
Or if you only need to get counter, it is easy to put it in front of a name using [C:2]$[N] template and replace ([0-9]+)$(.*)$ with \[a\]\[b\]$1\[c\].
Or even simpler, if you type a, b and c manually (do not take them from old names), you can simply use name template [C:2] and regex replace (.*) with \[a\]\[b\]$1\[c\]!
MVV wrote:Yes, it is hard to read/write templates with many brackets... But I doubt that someone will change format.
You can read TC help topic concerning regular expression syntax, you need $1 for first captured group etc, also special characters must be escaped as Ovg said.
Try name template [N]$[C] and regex replace \[[0-9a-f]+\](_Track[0-9]+)\$([0-9]+)$ with \[$2\]$1 (uncheck all options except RegEx).
Or if you only need to get counter, it is easy to put it in front of a name using [C:2]$[N] template and replace ([0-9]+)$(.*)$ with \[a\]\[b\]$1\[c\].
Or even simpler, if you type a, b and c manually (do not take them from old names), you can simply use name template [C:2] and regex replace (.*) with \[a\]\[b\]$1\[c\]!
Thank you. Solved it. And the same for you Ovg
As for the template format, I think it should post to the suggestion board for further discussion.