Skip to content

Commit 657f38e

Browse files
committed
fix formatting
Signed-off-by: Ritvi Bhatt <[email protected]>
1 parent 06f0f8d commit 657f38e

File tree

2 files changed

+15
-27
lines changed

2 files changed

+15
-27
lines changed

docs/user/ppl/cmd/replace.rst

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,22 @@ replace
1010

1111

1212
Description
13-
============
14-
Using ``replace`` command to replace text in one or more fields in the search result.
15-
16-
Note: This command is only available when Calcite engine is enabled.
13+
===========
14+
The ``replace`` replaces text in one or more fields in the search result.
1715

1816

1917
Syntax
20-
============
18+
======
2119
replace '<pattern>' WITH '<replacement>' [, '<pattern>' WITH '<replacement>']... IN <field-name>[, <field-name>]...
2220

23-
24-
Parameters
25-
==========
26-
* **pattern**: mandatory. The text pattern you want to replace. Currently supports only plain text literals (no wildcards or regular expressions).
27-
* **replacement**: mandatory. The text you want to replace with.
28-
* **field-name**: mandatory. One or more field names where the replacement should occur.
29-
30-
31-
Examples
32-
========
21+
* pattern: mandatory. The text pattern you want to replace. Currently supports only plain text literals (no wildcards or regular expressions).
22+
* replacement: mandatory. The text you want to replace with.
23+
* field-name: mandatory. One or more field names where the replacement should occur.
3324

3425
Example 1: Replace text in one field
35-
------------------------------------
26+
====================================
3627

37-
The example shows replacing text in one field.
28+
This example shows replacing text in one field.
3829

3930
PPL query::
4031

@@ -51,9 +42,9 @@ PPL query::
5142

5243

5344
Example 2: Replace text in multiple fields
54-
------------------------------------
45+
==========================================
5546

56-
The example shows replacing text in multiple fields.
47+
This example shows replacing text in multiple fields.
5748

5849
PPL query::
5950

@@ -70,9 +61,9 @@ PPL query::
7061

7162

7263
Example 3: Replace with other commands in a pipeline
73-
------------------------------------
64+
====================================================
7465

75-
The example shows using replace with other commands in a query pipeline.
66+
This example shows using replace with other commands in a query pipeline.
7667

7768
PPL query::
7869

@@ -87,9 +78,9 @@ PPL query::
8778
+----------+-----+
8879

8980
Example 4: Replace with multiple pattern/replacement pairs
90-
------------------------------------
81+
==========================================================
9182

92-
The example shows using multiple pattern/replacement pairs in a single replace command. The replacements are applied sequentially.
83+
This example shows using multiple pattern/replacement pairs in a single replace command. The replacements are applied sequentially.
9384

9485
PPL query::
9586

@@ -105,7 +96,7 @@ PPL query::
10596
+-----------+
10697

10798
Example 5: Pattern matching with LIKE and replace
108-
------------------------------------
99+
=================================================
109100

110101
Since replace command only supports plain string literals, you can use LIKE command with replace for pattern matching needs.
111102

docs/user/ppl/cmd/rex.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,6 @@ Special Characters in Group Names No No
215215

216216
Limitations
217217
===========
218-
219-
There are several important limitations with the rex command:
220-
221218
**Named Capture Group Naming:**
222219

223220
- Group names must start with a letter and contain only letters and digits

0 commit comments

Comments
 (0)