summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/de/weechat_user.de.asciidoc14
-rw-r--r--doc/en/weechat_user.en.asciidoc14
-rw-r--r--doc/fr/weechat_user.fr.asciidoc16
-rw-r--r--doc/it/weechat_user.it.asciidoc14
-rw-r--r--doc/ja/weechat_user.ja.asciidoc13
-rw-r--r--doc/pl/weechat_user.pl.asciidoc13
6 files changed, 46 insertions, 38 deletions
diff --git a/doc/de/weechat_user.de.asciidoc b/doc/de/weechat_user.de.asciidoc
index 94a370c39..63d2b108a 100644
--- a/doc/de/weechat_user.de.asciidoc
+++ b/doc/de/weechat_user.de.asciidoc
@@ -3138,15 +3138,17 @@ oder mehrere identische Zeichen).
Matching groups können in "replace" genutzt werden:
-* `$0` bis `$99`: `$0` um alles zu matchen, `$1` bis `$99` um Gruppen zu fangen
-* `$+`: der letzte match (mit der höchsten Nummer)
-* `$.cN`: match "N" mit allen Zeichen die durch "c" ersetzt wurden (Beispiel: `$.*2` ist die group
- #2 mit allen Zeichen die durch `*` ersetzt wurden).
+* `${re:0}` bis `${re:99}`: `${re:0}` um alles zu matchen, `${re:1}` bis
+ `${re:99}` um Gruppen zu fangen
+* `${re:+}`: der letzte match (mit der höchsten Nummer)
+* `${hide:c,${re:N}}`: match "N" mit allen Zeichen die durch "c" ersetzt wurden
+ (Beispiel: `${hide:*,${re:2}}` ist die group #2 mit allen Zeichen die durch
+ `*` ersetzt wurden).
Beispiel: nutzte Fettschrift zwischen dem Zeichen "*":
----
-/\*(\S+)\*/*${color:bold}$1${color:-bold}*/
+/\*(\S+)\*/*${color:bold}${re:1}${color:-bold}*/
----
Beispiel: der Standard-Trigger 'server_pass' nutzt folgenden regulären Ausdruck
@@ -3154,7 +3156,7 @@ um ein Passwort in den Befehlen `/server` und `/connect` zu verbergen (die
einzelnen Zeichen des Passwortes werden durch `*` ersetzt):
----
-==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==$1$.*4$5
+==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==${re:1}${hide:*,${re:4}}${re:5}
----
[NOTE]
diff --git a/doc/en/weechat_user.en.asciidoc b/doc/en/weechat_user.en.asciidoc
index 0e0144392..d21ffa7f8 100644
--- a/doc/en/weechat_user.en.asciidoc
+++ b/doc/en/weechat_user.en.asciidoc
@@ -3062,15 +3062,17 @@ The char "/" can be replaced by any char (one or more identical chars).
Matching groups can be used in "replace":
-* `$0` to `$99`: `$0` is the whole match, `$1` to `$99` are groups captured
-* `$+`: the last match (with highest number)
-* `$.cN`: match "N" with all chars replaced by "c" (example: `$.*2` is the group
- #2 with all chars replaced by `*`).
+* `${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)
+* `${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
+ `*`).
Example: use bold for words between "*":
----
-/\*(\S+)\*/*${color:bold}$1${color:-bold}*/
+/\*(\S+)\*/*${color:bold}${re:1}${color:-bold}*/
----
Example: default trigger 'server_pass' uses this regular expression to hide
@@ -3078,7 +3080,7 @@ password in commands `/server` and `/connect` (chars in passwords are replaced
by `*`):
----
-==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==$1$.*4$5
+==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==${re:1}${hide:*,${re:4}}${re:5}
----
[NOTE]
diff --git a/doc/fr/weechat_user.fr.asciidoc b/doc/fr/weechat_user.fr.asciidoc
index 10edab695..3526fd0a3 100644
--- a/doc/fr/weechat_user.fr.asciidoc
+++ b/doc/fr/weechat_user.fr.asciidoc
@@ -3161,17 +3161,17 @@ caractères identiques).
Les groupes de correspondance peuvent être utilisés dans le "remplacement" :
-* `$0` à `$99` : `$0` est la correspondance complète, `$1` à `$99` sont les
- groupes capturés
-* `$+` : la dernière correspondance (avec le numéro le plus élevé)
-* `$.cN` : la correspondance "N" avec tous les caractères remplacés par "c"
- (exemple : `$.*2` est le groupe n°2 avec tous les caractères remplacés par
- `*`).
+* `${re:0}` à `${re:99}` : `${re:0}` est la correspondance complète, `${re:1}`
+ à `${re:99}` sont les groupes capturés
+* `${re:+}` : la dernière correspondance (avec le numéro le plus élevé)
+* `${hide:c,${re:N}}` : la correspondance "N" avec tous les caractères
+ remplacés par "c" (exemple : `${hide:*,${re:2}}` est le groupe n°2 avec tous
+ les caractères remplacés par `*`).
Exemple : utiliser du gras pour les mots entre "*" :
----
-/\*(\S+)\*/*${color:bold}$1${color:-bold}*/
+/\*(\S+)\*/*${color:bold}${re:1}${color:-bold}*/
----
Exemple : le trigger par défaut 'server_pass' utilise cette expression régulière
@@ -3179,7 +3179,7 @@ pour cacher le mot de passe dans les commandes `/server` et `/connect` (les
caractères des mots de passe sont remplacés par `*`) :
----
-==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==$1$.*4$5
+==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==${re:1}${hide:*,${re:4}}${re:5}
----
[NOTE]
diff --git a/doc/it/weechat_user.it.asciidoc b/doc/it/weechat_user.it.asciidoc
index 1077cf636..272feed51 100644
--- a/doc/it/weechat_user.it.asciidoc
+++ b/doc/it/weechat_user.it.asciidoc
@@ -3204,15 +3204,17 @@ The char "/" can be replaced by any char (one or more identical chars).
Matching groups can be used in "replace":
-* `$0` to `$99`: `$0` is the whole match, `$1` to `$99` are groups captured
-* `$+`: the last match (with highest number)
-* `$.cN`: match "N" with all chars replaced by "c" (example: `$.*2` is the group
- #2 with all chars replaced by `*`).
+* `${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)
+* `${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
+ `*`).
Example: use bold for words between "*":
----
-/\*(\S+)\*/*${color:bold}$1${color:-bold}*/
+/\*(\S+)\*/*${color:bold}${re:1}${color:-bold}*/
----
Example: default trigger 'server_pass' uses this regular expression to hide
@@ -3220,7 +3222,7 @@ password in commands `/server` and `/connect` (chars in passwords are replaced
by `*`):
----
-==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==$1$.*4$5
+==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==${re:1}${hide:*,${re:4}}${re:5}
----
[NOTE]
diff --git a/doc/ja/weechat_user.ja.asciidoc b/doc/ja/weechat_user.ja.asciidoc
index 03386283c..26b2bd2d8 100644
--- a/doc/ja/weechat_user.ja.asciidoc
+++ b/doc/ja/weechat_user.ja.asciidoc
@@ -3060,15 +3060,16 @@ ${tg_highlight} || ${tg_msg_pv}
マッチグループを "replace" の中で利用できます:
-* `$0` から `$99`: `$0` はマッチ部分の全体、`$1` から `$99` はグループ化されたマッチ部分
-* `$+`: 最後のマッチ部分 (最大のグループ番号を持つ)
-* `$.cN`: マッチグループ "N" のすべての文字を "c" で置換した文字列 (例: `$.*2` はグループ
- #2 のすべての文字を `*` で置換した文字列).
+* `${re:0}` から `${re:99}`: `${re:0}` はマッチ部分の全体、`${re:1}` から
+ `${re:99}` はグループ化されたマッチ部分
+* `${re:+}`: 最後のマッチ部分 (最大のグループ番号を持つ)
+* `${hide:c,${re:N}}`: マッチグループ "N" のすべての文字を "c" で置換した文字列
+ (例: `${hide:*,${re:2}}` はグループ #2 のすべての文字を `*` で置換した文字列).
例: "*" で囲まれた文字を太字にする:
----
-/\*(\S+)\*/*${color:bold}$1${color:-bold}*/
+/\*(\S+)\*/*${color:bold}${re:1}${color:-bold}*/
----
例: デフォルトトリガ 'server_pass' はこの正規表現を使って、`/server`
@@ -3076,7 +3077,7 @@ ${tg_highlight} || ${tg_msg_pv}
`*` で置換しています):
----
-==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==$1$.*4$5
+==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==${re:1}${hide:*,${re:4}}${re:5}
----
[NOTE]
diff --git a/doc/pl/weechat_user.pl.asciidoc b/doc/pl/weechat_user.pl.asciidoc
index 7934e64d3..6b18ce606 100644
--- a/doc/pl/weechat_user.pl.asciidoc
+++ b/doc/pl/weechat_user.pl.asciidoc
@@ -3089,22 +3089,23 @@ identycznymi znakami).
Dopasowane grupy, które mogą zostać użyte w "zamień":
-* `$0` to `$99`: `$0` to pełne dopasowanie, `$1` do `$99` to przechwycone grupy
-* `$+`: ostatnie dopasowanie (z najwyższym numerem)
-* `$.cN`: dopasowanie "N" z wszystkimi znakami zastąpionymi "c" (przykład: `$.*2`
- to grupa #2 ze znakami zastąpionymi `*`).
+* `${re:0}` to `${re:99}`: `${re:0}` to pełne dopasowanie, `${re:1}` do
+ `${re:99}` to przechwycone grupy
+* `${re:+}`: ostatnie dopasowanie (z najwyższym numerem)
+* `${hide:c,${re:N}}`: dopasowanie "N" z wszystkimi znakami zastąpionymi "c"
+ (przykład: `${hide:*,${re:2}}` to grupa #2 ze znakami zastąpionymi `*`).
Przykład: użyj pogrubienia dla słów pomiędzy "*":
----
-/\*(\S+)\*/*${color:bold}$1${color:-bold}*/
+/\*(\S+)\*/*${color:bold}${re:1}${color:-bold}*/
----
Przykład: domyślny trigger 'server_pass' używa tego wyrażenia do ukrycia hasła
w komendach `/server` i `/connect` (znaki haseł są zastępowane przez `*`):
----
-==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==$1$.*4$5
+==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==${re:1}${hide:*,${re:4}}${re:5}
----
[NOTE]