From 3eaca858fdd21347043cd04037fe815851570a1e Mon Sep 17 00:00:00 2001 From: Oleksii Kovalov Date: Tue, 25 Nov 2025 18:11:45 +0200 Subject: [PATCH 1/3] Update occurrence parameter description in regexp-replace Clarified behavior of the occurrence parameter in regexp_replace. --- docs/t-sql/functions/regexp-replace-transact-sql.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/t-sql/functions/regexp-replace-transact-sql.md b/docs/t-sql/functions/regexp-replace-transact-sql.md index 2117146094b..ac9c32d2d83 100644 --- a/docs/t-sql/functions/regexp-replace-transact-sql.md +++ b/docs/t-sql/functions/regexp-replace-transact-sql.md @@ -82,7 +82,7 @@ The numbering is 1-based, meaning the first character in the expression is `1` a #### *occurrence* -An expression (positive integer) that specifies which occurrence of the pattern expression within the source string to be searched or replaced. Default is `1`. Searches at the first character of the *string_expression*. For a positive integer `n`, it searches for the `nth` occurrence beginning with the first character following the first occurrence of the *pattern_expression*, and so forth. +An expression (positive integer) that specifies which occurrence of the pattern expression within the source string to be searched or replaced. Default is `1`. Searches at the first character of the *string_expression*. For a positive integer `n`, it searches for the `nth` occurrence beginning with the first character following the first occurrence of the *pattern_expression*, and so forth. If the value is `0`, all occurrences of the *pattern_expression* are replaced. #### *flags* From 9fb76a7e032620b2f92be3ba0f8d3f61bd53c52a Mon Sep 17 00:00:00 2001 From: Randolph West MSFT <97149825+rwestMSFT@users.noreply.github.com> Date: Mon, 8 Dec 2025 13:12:00 -0700 Subject: [PATCH 2/3] Update docs/t-sql/functions/regexp-replace-transact-sql.md Co-authored-by: Abhiman Tiwari --- docs/t-sql/functions/regexp-replace-transact-sql.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/t-sql/functions/regexp-replace-transact-sql.md b/docs/t-sql/functions/regexp-replace-transact-sql.md index ac9c32d2d83..a05420c8027 100644 --- a/docs/t-sql/functions/regexp-replace-transact-sql.md +++ b/docs/t-sql/functions/regexp-replace-transact-sql.md @@ -82,7 +82,7 @@ The numbering is 1-based, meaning the first character in the expression is `1` a #### *occurrence* -An expression (positive integer) that specifies which occurrence of the pattern expression within the source string to be searched or replaced. Default is `1`. Searches at the first character of the *string_expression*. For a positive integer `n`, it searches for the `nth` occurrence beginning with the first character following the first occurrence of the *pattern_expression*, and so forth. If the value is `0`, all occurrences of the *pattern_expression* are replaced. +An expression (positive integer) that specifies which occurrence of the pattern expression in the source string should be searched or replaced. The default value is `0`, which means all occurrences of the *pattern_expression* are replaced. For a positive integer `n`, it searches for the `n`th occurrence, continuing the search from the character immediately following each previous match. #### *flags* From 9126e55adcae9e373b1aa28946fc1831e6c68ee7 Mon Sep 17 00:00:00 2001 From: Randolph West MSFT <97149825+rwestMSFT@users.noreply.github.com> Date: Mon, 8 Dec 2025 13:13:20 -0700 Subject: [PATCH 3/3] Update docs/t-sql/functions/regexp-replace-transact-sql.md --- docs/t-sql/functions/regexp-replace-transact-sql.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/t-sql/functions/regexp-replace-transact-sql.md b/docs/t-sql/functions/regexp-replace-transact-sql.md index a05420c8027..219f2d040ff 100644 --- a/docs/t-sql/functions/regexp-replace-transact-sql.md +++ b/docs/t-sql/functions/regexp-replace-transact-sql.md @@ -82,7 +82,7 @@ The numbering is 1-based, meaning the first character in the expression is `1` a #### *occurrence* -An expression (positive integer) that specifies which occurrence of the pattern expression in the source string should be searched or replaced. The default value is `0`, which means all occurrences of the *pattern_expression* are replaced. For a positive integer `n`, it searches for the `n`th occurrence, continuing the search from the character immediately following each previous match. +An expression (positive integer) that specifies which occurrence of the pattern expression in the source string should be searched or replaced. The default value is `0`, which means all occurrences of the *pattern_expression* are replaced. For a positive integer `n`, it searches *string_expression* for the `n`th occurrence, continuing the search from the character immediately following each previous match. #### *flags*