Skip to content

Commit 4178b9f

Browse files
authored
Merge pull request #37 from Microsoft/corob-msft-patch-1
Fix for typo in regex doc
2 parents 31532d1 + 7c526a9 commit 4178b9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,13 @@ Zero or more flags may be combined with the grammar to specify the regular expre
159159

160160
For all grammars except `basic` and `grep`, a repetition count can also take one of the following forms:
161161

162-
- "". Equivalent to "{0,1}".
162+
- "?". Equivalent to "{0,1}".
163163

164164
- "+". Equivalent to "{1,unbounded}".
165165

166166
Examples:
167167

168-
- "a" matches the target sequence "" and the target sequence "a", but not the target sequence "aa".
168+
- "a?" matches the target sequence "" and the target sequence "a", but not the target sequence "aa".
169169

170170
- "a+" matches the target sequence "a", the target sequence "aa", and so on, but not the target sequence "".
171171

0 commit comments

Comments
 (0)