Table des matières

HyperCrop

HyperCrop removes characters at the start and/or end of a name, or words inside it, so that it matches the name of a file on disk.
You will find it in the Crop column of the Matching Table, in Output Name fields, and in variables.

Syntax

Form Effect
N Removes N characters at the start
N:M Removes N characters at the start and M at the end
text: Removes everything up to this text, included (start)
:text Removes everything from the last occurrence of this text (end)
::WORD Removes the word WORD wherever it is
::WORD1:WORD2 Removes several words. E.g. ::_turn_:BG_ removes _turn_ and BG_
N:M:WORD Combines: start, end, then words
The first parameter applies to the prefix, the second to the suffix. The following ones are words to remove.
The former documentation also mentioned the comma , as prefix / suffix separator (this is the form used in the ToonBrowser TagCrop / TagFileCrop parameters).

Examples

Starting string: TOTO_BOBO_123-2222

Crop Result What is removed
3 O_BOBO_123-2222 The first 3 characters
3:3 O_BOBO_123-2 The first 3 and the last 3
0:3 TOTO_BOBO_123-2 The last 3
_:3 BOBO_123-2 Up to the first _, plus the last 3
1:- OTO_BOBO_123 The first one, and everything from the last -
:- TOTO_BOBO_123 Everything from the last -
TO_:_1 BOBO Up to TO_ and from _1
::BOBO_ TOTO_123-2222 The word BOBO_
::BOBO:TOTO __123-2222 The words BOBO and TOTO
3:3:BOBO_ O_123-2 3 at the start, 3 at the end, and the word BOBO_

With a variable

Add the rule between < > right after the variable: %x<rule>. The crop is applied to the variable's value.

Episode name You write You get
My Episode CH_%n<3:3> CH_Epis

See also