From 3eaca858fdd21347043cd04037fe815851570a1e Mon Sep 17 00:00:00 2001 From: Oleksii Kovalov Date: Tue, 25 Nov 2025 18:11:45 +0200 Subject: [PATCH] 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*