From 2962b85efbe190135a98a9e49b023de45785ba78 Mon Sep 17 00:00:00 2001 From: Mr-Pine Date: Mon, 21 Oct 2024 14:52:45 +0200 Subject: [PATCH] Document named capture groups --- CONFIG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CONFIG.md b/CONFIG.md index 9a6eb4a..a52506d 100644 --- a/CONFIG.md +++ b/CONFIG.md @@ -394,7 +394,8 @@ matches `SOURCE`, the output path is created using `TARGET` as template. be referred to as `{g}` (e.g. `{g3}`). `{g0}` refers to the original path. If capturing group *n*'s contents are a valid integer, the integer value is available as `{i}` (e.g. `{i3}`). If capturing group *n*'s contents are a -valid float, the float value is available as `{f}` (e.g. `{f3}`). If a +valid float, the float value is available as `{f}` (e.g. `{f3}`). Named capture +groups (e.g. `(?P)`) are available by their name (e.g. `{name}`). If a capturing group is not present (e.g. when matching the string `cd` with the regex `(ab)?cd`), the corresponding variables are not defined.