summaryrefslogtreecommitdiff
path: root/doc/it
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-03-30 22:13:14 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-03-30 22:13:14 +0200
commitbb00b6b8fb895e85d2959bebba9d49fe9de61438 (patch)
treef751d79ce8c49eedc7164916349d14be6ec638b5 /doc/it
parentf0c8da2f05a4b463cbc7d03341ee8a7a6db45f61 (diff)
downloadweechat-bb00b6b8fb895e85d2959bebba9d49fe9de61438.zip
core: add ${re:#} to get the index of last group captured in evaluation of expressions
Diffstat (limited to 'doc/it')
-rw-r--r--doc/it/weechat_plugin_api.it.adoc15
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),