diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-21 22:55:28 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-21 22:55:28 +0100 |
commit | 59d885764605ff5879f99a0d887d5be1545c3062 (patch) | |
tree | 303f9b0a2454af2124921d9e8b529d168a5b9ae8 /doc/en | |
parent | d6386cd36406024422416d11cdff600ccdc6a708 (diff) | |
download | weechat-59d885764605ff5879f99a0d887d5be1545c3062.zip |
doc/user: add missing `${re:#}` and `${re:repl_index}` in trigger regex replace
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/weechat_user.en.adoc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/en/weechat_user.en.adoc b/doc/en/weechat_user.en.adoc index 4baed3cbd..f3654c796 100644 --- a/doc/en/weechat_user.en.adoc +++ b/doc/en/weechat_user.en.adoc @@ -5127,6 +5127,8 @@ Matching groups can be used in _replace_: * `+${re:0}+` to `+${re:99}+`: `+${re:0}+` is the whole match, `+${re:1}+` to `+${re:99}+` are groups captured * `+${re:+}+`: the last match (with highest number) +* `+${re:#}+`: index of last group captured +* `+${re:repl_index}+`: index of replacement being done (starts to 1) * `+${hide:c,${re:N}}+`: match "N" with all chars replaced by "c" (example: `+${hide:*,${re:2}}+` is the group #2 with all chars replaced by `+*+`). |