Skip to content

Commit 8f9c734

Browse files
authored
Fix a few typos in "Regular expressions (C++)"
1 parent dda89e0 commit 8f9c734

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/standard-library/regular-expressions-cpp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The C++ standard library supports multiple regular expression grammars. This top
1212

1313
## <a name="regexgrammar"></a> Regular expression grammar
1414

15-
The regular expression grammar to use is by specified by the use of one of the `std::regex_constants::syntax_option_type` enumeration values. These regular expression grammars are defined in `std::regex_constants`:
15+
The regular expression grammar to use is specified by the use of one of the `std::regex_constants::syntax_option_type` enumeration values. These regular expression grammars are defined in `std::regex_constants`:
1616

1717
- ECMAScript: This is closest to the grammar used by JavaScript and the .NET languages.
1818
- basic: The POSIX basic regular expressions or BRE.
@@ -56,7 +56,7 @@ An element can be one of the following:
5656

5757
- An *anchor*. Anchor `^` matches the beginning of the target sequence. Anchor `$` matches the end of the target sequence.
5858

59-
A *capture group* of the form (*subexpression*), or \\(*subexpression*\\) in basic and grep, which matches the sequence of characters in the target sequence that is matched by the pattern between the delimiters.
59+
- A *capture group* of the form (*subexpression*), or \\(*subexpression*\\) in basic and grep, which matches the sequence of characters in the target sequence that is matched by the pattern between the delimiters.
6060

6161
- An *identity escape* of the form `\k`, which matches the character `k` in the target sequence.
6262

@@ -92,7 +92,7 @@ In ECMAScript, an element can also be one of the following:
9292

9393
- A *control escape sequence* of the form `\ck`. Matches the control character that is named by the character `k`.
9494

95-
- A *word boundary assert* of the form`\b`. Matches when the current position in the target sequence is immediately after a *word boundary*.
95+
- A *word boundary assert* of the form `\b`. Matches when the current position in the target sequence is immediately after a *word boundary*.
9696

9797
- A *negative word boundary assert* of the form `\B`. Matches when the current position in the target sequence isn't immediately after a *word boundary*.
9898

0 commit comments

Comments
 (0)