diff options
Diffstat (limited to 'doc/it/weechat_plugin_api.it.adoc')
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index 31e610f08..8f70f1402 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -2136,9 +2136,18 @@ expanded to last): | `+${re:N}+` | Regex captured group: `0` = whole string matching, `1` to `99` = group - captured, `+++` = last group captured. | - `+${re:1}+` | - `+test+` + captured, `+++` = last group captured, + `#` = index of last group captured (_WeeChat ≥ 1.8_). | + `+${re:0}+` + + `+${re:1}+` + + `+${re:2}+` + + `+${re:+++}+` + + `+${re:#}+` | + `+test1 test2+` + + `+test1+` + + `+test2+` + + `+test2+` + + `+2+` | `+${color:name}+` | WeeChat color code (the name of color has optional attributes), |