Skip to content

Commit 7c526a9

Browse files
author
Colin Robertson
authored
Fix for typo in regex doc
The document was missing a couple of important question marks, as spotted by a customer.
1 parent 31532d1 commit 7c526a9

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)