Skip to content

Commit 45dcffa

Browse files
authored
Fix about_Regular_Expressions.md (#11569)
1 parent 4b8a740 commit 45dcffa

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

reference/5.1/Microsoft.PowerShell.Core/About/about_Regular_Expressions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ characters).
8181
### Numbers
8282

8383
The `\d` character class will match any decimal digit. Conversely, `\D` will
84-
match any non-decimal digit.
84+
match any character except decimal digits.
8585

8686
```powershell
8787
# This expression returns true if it matches a server name.
@@ -200,8 +200,8 @@ characters.
200200
When using anchors in PowerShell, you should understand the difference between
201201
**Singleline** and **Multiline** regular expression options.
202202

203-
- **Multiline**: Multiline mode forces `^` and `$` to match the beginning end
204-
of every LINE instead of the beginning and end of the input string.
203+
- **Multiline**: Multiline mode forces `^` and `$` to match the beginning and
204+
end of every LINE instead of the beginning and end of the input string.
205205
- **Singleline**: Singleline mode treats the input string as a **SingleLine**.
206206
It forces the `.` character to match every character (including newlines),
207207
instead of matching every character EXCEPT the newline `\n`.

reference/7.4/Microsoft.PowerShell.Core/About/about_Regular_Expressions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ characters).
8181
### Numbers
8282

8383
The `\d` character class will match any decimal digit. Conversely, `\D` will
84-
match any non-decimal digit.
84+
match any character except decimal digits.
8585

8686
```powershell
8787
# This expression returns true if it matches a server name.
@@ -200,8 +200,8 @@ characters.
200200
When using anchors in PowerShell, you should understand the difference between
201201
**Singleline** and **Multiline** regular expression options.
202202

203-
- **Multiline**: Multiline mode forces `^` and `$` to match the beginning end
204-
of every LINE instead of the beginning and end of the input string.
203+
- **Multiline**: Multiline mode forces `^` and `$` to match the beginning and
204+
end of every LINE instead of the beginning and end of the input string.
205205
- **Singleline**: Singleline mode treats the input string as a **SingleLine**.
206206
It forces the `.` character to match every character (including newlines),
207207
instead of matching every character EXCEPT the newline `\n`.

reference/7.5/Microsoft.PowerShell.Core/About/about_Regular_Expressions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ characters).
8282
### Numbers
8383

8484
The `\d` character class will match any decimal digit. Conversely, `\D` will
85-
match any non-decimal digit.
85+
match any character except decimal digits.
8686

8787
```powershell
8888
# This expression returns true if it matches a server name.
@@ -201,8 +201,8 @@ characters.
201201
When using anchors in PowerShell, you should understand the difference between
202202
**Singleline** and **Multiline** regular expression options.
203203

204-
- **Multiline**: Multiline mode forces `^` and `$` to match the beginning end
205-
of every LINE instead of the beginning and end of the input string.
204+
- **Multiline**: Multiline mode forces `^` and `$` to match the beginning and
205+
end of every LINE instead of the beginning and end of the input string.
206206
- **Singleline**: Singleline mode treats the input string as a **SingleLine**.
207207
It forces the `.` character to match every character (including newlines),
208208
instead of matching every character EXCEPT the newline `\n`.

0 commit comments

Comments
 (0)