You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user/ppl/cmd/rex.rst
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,13 +23,16 @@ rex [mode=<mode>] field=<field> <pattern> [max_match=<int>] [offset_field=<strin
23
23
24
24
* field: mandatory. The field must be a string field to extract data from.
25
25
* pattern: mandatory string. The regular expression pattern with named capture groups used to extract new fields. Pattern must contain at least one named capture group using ``(?<name>pattern)`` syntax.
26
-
* mode: optional. Either ``extract`` (default) or ``sed``. In extract mode, creates new fields from named capture groups. In sed mode, performs text substitution on the field using sed-style patterns:
26
+
* mode: optional. Either ``extract`` (default) or ``sed``.
27
27
28
-
- ``s/pattern/replacement/`` - Replace first occurrence
29
-
- ``s/pattern/replacement/g`` - Replace all occurrences (global)
30
-
- ``s/pattern/replacement/n`` - Replace only the nth occurrence (where n is a number)
0 commit comments