Skip to content

Commit

Permalink
Fix about_Regular_Expressions.md (#11569)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvs authored Dec 7, 2024
1 parent 4b8a740 commit 45dcffa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ characters).
### Numbers

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

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

- **Multiline**: Multiline mode forces `^` and `$` to match the beginning end
of every LINE instead of the beginning and end of the input string.
- **Multiline**: Multiline mode forces `^` and `$` to match the beginning and
end of every LINE instead of the beginning and end of the input string.
- **Singleline**: Singleline mode treats the input string as a **SingleLine**.
It forces the `.` character to match every character (including newlines),
instead of matching every character EXCEPT the newline `\n`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ characters).
### Numbers

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

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

- **Multiline**: Multiline mode forces `^` and `$` to match the beginning end
of every LINE instead of the beginning and end of the input string.
- **Multiline**: Multiline mode forces `^` and `$` to match the beginning and
end of every LINE instead of the beginning and end of the input string.
- **Singleline**: Singleline mode treats the input string as a **SingleLine**.
It forces the `.` character to match every character (including newlines),
instead of matching every character EXCEPT the newline `\n`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ characters).
### Numbers

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

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

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

0 comments on commit 45dcffa

Please sign in to comment.