Skip to content

Commit 59d58c3

Browse files
authored
Merge pull request #3146 from gewarren/regex1
Add end of file anchor for RegEx
2 parents fb21e7e + b0f7639 commit 59d58c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ Here are some examples:
4343
|Match zero or more occurrences of the preceding expression (match as few characters as possible)|*?|`e.*?e` matches "ee" in "feeder" but not "eede".|
4444
|Match one or more occurrences of the preceding expression (match as few characters as possible)|+?|`e.+?e` matches "ente" and "erprise" in "enterprise", but not the whole word "enterprise".|
4545
|Anchor the match string to the beginning of a line or string|^|`^car` matches the word "car" only when it appears at the beginning of a line.|
46-
|Anchor the match string to the end of a line|\r?$|`End\r?$` matches "end" only when it appears at the end of a line.|
46+
|Anchor the match string to the end of a line|\r?$|`end\r?$` matches "end" only when it appears at the end of a line.|
47+
|Anchor the match string to the end of the file|$|`end$` matches "end" only when it appears at the end of the file.|
4748
|Match any single character in a set|[abc]|`b[abc]` matches "ba", "bb", and "bc".|
4849
|Match any character in a range of characters|[a-f]|`be[n-t]` matches "bet" in "between", "ben" in "beneath", and "bes" in "beside", but not "below".|
4950
|Capture and implicitly number the expression contained within parenthesis|()|`([a-z])X\1` matches "aXa"and "bXb", but not "aXb". "\1" refers to the first expression group "[a-z]".|

0 commit comments

Comments
 (0)