Skip to content

Commit bfdc5ee

Browse files
craig[bot]nexdrew
andcommitted
Merge #27128
27128: docs: fix the "global matching" regex flag to "g" r=benesch a=nexdrew Also reinstate "i" as the "case-insensitive" flag and preserve alphabetical order of flags in table. Closes #27107. Co-authored-by: nexdrew <andrewbgoode@gmail.com>
2 parents 703d1b9 + 5750385 commit bfdc5ee

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/generated/sql/functions.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,8 +777,12 @@ has no relationship with the commit order of concurrent transactions.</p>
777777
<td>Case-sensitive matching</td>
778778
</tr>
779779
<tr>
780+
<td><strong>g</strong></td>
781+
<td>Global matching (match each substring instead of only the first)</td>
782+
</tr>
783+
<tr>
780784
<td><strong>i</strong></td>
781-
<td>Global matching (match each substring instead of only the first).</td>
785+
<td>Case-insensitive matching</td>
782786
</tr>
783787
<tr>
784788
<td><strong>m</strong> or <strong>n</strong></td>

pkg/sql/sem/builtins/builtins.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,8 @@ CockroachDB supports the following flags:
10491049
| Flag | Description |
10501050
|----------------|-------------------------------------------------------------------|
10511051
| **c** | Case-sensitive matching |
1052-
| **i** | Global matching (match each substring instead of only the first). |
1052+
| **g** | Global matching (match each substring instead of only the first) |
1053+
| **i** | Case-insensitive matching |
10531054
| **m** or **n** | Newline-sensitive (see below) |
10541055
| **p** | Partial newline-sensitive matching (see below) |
10551056
| **s** | Newline-insensitive (default) |

0 commit comments

Comments
 (0)