Regex Match

Javinizer supports using regex match instead of the default file matcher.

To use, you will need to set match.regex to true. The regex string used is defined in setting match.regex.string. To include support for multi-part videos, you can optionally add the regex to grab the part number of the video you are sorting. This is more strict than the default file matcher, and requires that the part number be defined as an integer (1, 2, 3, etc.) rather than a letter or anything else.

Example

Let's take the default regex settings as an example. As we are defining this as a JSON string, you will need to escape your backslashes with an additional backslash character.

\ => \\

In this regex string, we are trying to match the default DVD ID format of output files from Javinizer.

"match.regex": true,
"match.regex.string": "([a-zA-Z|tT28]+-\\d+[zZ]?[eE]?)(?:-pt)?(\\d{1,2})?",
"match.regex.idmatch": 1,
"match.regex.ptmatch": 2,

I tend to look at regex101 to create my regex strings. We can see here with the default regex, we are matching the ID ABP-420 as group 1, and the part numbers as group 2. These are the values we need to define in the match.regex.idmatch and match.regex.ptmatch settings.

To test your regex settings with Javinizer, view the instructions to display the file matcher output.

Last updated