Skip to content

Commit 8417886

Browse files
authored
Merge pull request #4483 from gewarren/regex
Fix a couple RegEx GitHub issues
2 parents 9bc35a5 + c801896 commit 8417886

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/ide/using-regular-expressions-in-visual-studio.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ Here are some examples:
5555
|Match a word boundary|\b (Outside a character class `\b` specifies a word boundary, and inside a character class `\b` specifies a backspace.)|`\bin` matches "in" in "inside" but not "pinto".|
5656
|Match a line break (that is, a carriage return followed by a new line).|\r?\n|`End\r?\nBegin` matches "End" and "Begin" only when "End" is the last string in a line and "Begin" is the first string in the next line.|
5757
|Match any alphanumeric character|\w|`a\wd` matches "add" and "a1d" but not "a d".|
58-
|Match any whitespace character.|(?([^\r\n])\s)|`Public\sInterface` matches the phrase "Public Interface".|
58+
|Match any whitespace character.|\s|`Public\sInterface` matches the phrase "Public Interface".|
5959
|Match any numeric character|\d|`\d` matches and "3" in "3456", "2" in 23", and "1" in "1".|
6060
|Match a Unicode character|\uXXXX where XXXX specifies the Unicode character value.|`\u0065` matches the character "e".|
6161
|Match an identifier|\b[\_\w-[0-9]][\_\w]*\b|Matches "type1" but not "&type1" or "#define".|
6262
|Match a string inside quotes|((\\".+?\\")|('.+?'))|Matches any string inside single or double quotes.|
63-
|Match a hexadecimal number|\b0[xX]([0-9a-fA-F]\)\b|Matches "0xc67f" but not "0xc67fc67f".|
63+
|Match a hexadecimal number|\b0[xX]([0-9a-fA-F]+\)\b|Matches "0xc67f" but not "0xc67g".|
6464
|Match integers and decimals|\b[0-9]*\\.\*[0-9]+\b|Matches "1.333".|
6565

6666
> [!TIP]

0 commit comments

Comments
 (0)