Skip to content

Commit 3cb449b

Browse files
Merge pull request #34730 from rwestMSFT/rw-0717-fix-regex
Refresh Regex article
2 parents 414d704 + ae266c2 commit 3cb449b

File tree

1 file changed

+19
-19
lines changed
  • docs/relational-databases/regular-expressions

1 file changed

+19
-19
lines changed

docs/relational-databases/regular-expressions/overview.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ description: Use regular expressions to filter and manipulate text strings in SQ
44
author: MikeRayMSFT
55
ms.author: wiassaf
66
ms.reviewer: abhtiwar, randolphwest, wiassaf,
7-
ms.date: 05/19/2025
7+
ms.date: 07/17/2025
88
ms.service: sql
99
ms.topic: quickstart
10+
ms.custom:
11+
- build-2025
1012
helpviewer_keywords:
1113
- "Regular expressions functions"
12-
- regex
14+
- "regex"
1315
dev_langs:
1416
- "TSQL"
15-
monikerRange: "= sql-server-ver17 || = sql-server-linux-ver17 || =azuresqldb-current || =azuresqldb-mi-current || =fabric"
16-
ms.custom:
17-
- build-2025
17+
monikerRange: "=sql-server-ver17 || =sql-server-linux-ver17 || =azuresqldb-current || =azuresqldb-mi-current || =fabric"
1818
---
1919

20-
# Regular expressions preview
20+
# Regular expressions preview
2121

2222
[!INCLUDE [sqlserver2025-asdb-asmi-fabric](../../includes/applies-to-version/sqlserver2025-asdb-asmi-fabricsqldb.md)]
2323

@@ -27,7 +27,7 @@ This article introduces regular expressions for SQL Server.
2727

2828
A regular expression, or regex, is a sequence of characters that defines a search pattern for text. Regex is commonly used for a variety of tasks including pattern matching, data validation, data transformation, and querying. It offers a flexible and an efficient way to search, manipulate, and handle complex data operations.
2929

30-
> [!NOTE]
30+
> [!NOTE]
3131
> Regular expressions are available in Azure SQL Managed Instance configured with the [Always-up-to-date](/azure/azure-sql/managed-instance/update-policy#always-up-to-date-update-policy) update policy.
3232
3333
This implementation of regular expression is based on the [RE2 regular expression library](https://github.com/google/re2/). For more information, visit [RE2 Regular Expression Syntax](https://cran.r-project.org/web/packages/re2/vignettes/re2_syntax.html#:~:text=The%20simplest%20regular%20expression%20is,matches%20a%20literal%20plus%20character).
@@ -45,7 +45,7 @@ A simple regular expression is a single literal character. Characters match them
4545
### Single character expressions
4646

4747
| Kinds of single-character expressions | Examples |
48-
|---------------------------------------|----------|
48+
| --- | --- |
4949
| any character, possibly including newline (s=true) | `.` |
5050
| character class | `[xyz]` |
5151
| negated character class | `[^xyz]` |
@@ -63,13 +63,13 @@ A simple regular expression is a single literal character. Characters match them
6363
The following table lists currently supported Perl character classes.
6464

6565
| Perl character classes (all ASCII-only) | Description |
66-
|-----------------------------------------|-------------|
67-
| `\d` | digits ( `[0-9]`) |
68-
| `\D` | not digits ( `[^0-9]`) |
69-
| `\s` | whitespace ( `[\t\n\f\r ]`) |
70-
| `\S` | not whitespace ( `[^\t\n\f\r ]`) |
71-
| `\w` | word characters ( `[0-9A-Za-z_]`) |
72-
| `\W` | not word characters ( `[^0-9A-Za-z_]`) |
66+
| --- | --- |
67+
| `\d` | digits ( `[0-9]`) |
68+
| `\D` | not digits ( `[^0-9]`) |
69+
| `\s` | whitespace ( `[\t\n\f\r ]`) |
70+
| `\S` | not whitespace ( `[^\t\n\f\r ]`) |
71+
| `\w` | word characters ( `[0-9A-Za-z_]`) |
72+
| `\W` | not word characters ( `[^0-9A-Za-z_]`) |
7373

7474
## ASCII character classes
7575

@@ -132,15 +132,15 @@ This implementation supports the POSIX standard of regular expressions following
132132

133133
### What is the performance impact of using regex?
134134

135-
Regex queries may have a performance impact depending on the complexity of the regex pattern, the size of the text data, and the number of rows involved. You can use the execution plan and statistics to monitor and optimize the performance of your regex queries.
135+
Regex queries can have a performance impact depending on the complexity of the regex pattern, the size of the text data, and the number of rows involved. You can use the execution plan and statistics to monitor and optimize the performance of your regex queries.
136136

137137
## Known Issues, behaviors, and limitations
138138

139-
These are the items that are not currently supported in this preview:
139+
These are the items that aren't currently supported in this preview:
140140

141141
- LOB data types (**varchar(max)** or **nvarchar(max)**) for `string_expressions`
142-
- Regular expression functions are not supported on memory-optimized OLTP tables
142+
- Regular expression functions aren't supported on memory-optimized OLTP tables
143143

144144
## Related content
145145

146-
- [Regular expressions functions preview (Transact-SQL)](../../t-sql/functions/regular-expressions-functions-transact-sql.md)
146+
- [Regular expressions functions (Transact-SQL) preview](../../t-sql/functions/regular-expressions-functions-transact-sql.md)

0 commit comments

Comments
 (0)