Skip to content

Commit 2e36588

Browse files
authored
Fix Regex pattern description. (#42283)
Addressing feedback from vsfeedback.
1 parent 1cbdc5b commit 2e36588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/fundamentals/runtime-libraries/system-text-regularexpressions-regex.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ The next example illustrates the use of a regular expression to check whether a
118118
| `\d*` | Match zero or more decimal digits. |
119119
| `\.?` | Match zero or one decimal point symbol. |
120120
| `(\d{2})?` | Capturing group 1: Match two decimal digits zero or one time. |
121-
| `(\d*\.?(\d{2})?){1}` | Match the pattern of integral and fractional digits separated by a decimal point symbol at least one time. |
121+
| `(\d*\.?(\d{2})?){1}` | Match the pattern of integral and fractional digits separated by a decimal point symbol exactly once. |
122122
| `$` | Match the end of the string. |
123123

124124
In this case, the regular expression assumes that a valid currency string does not contain group separator symbols, and that it has either no fractional digits or the number of fractional digits defined by the specified culture's <xref:System.Globalization.NumberFormatInfo.CurrencyDecimalDigits> property.

0 commit comments

Comments
 (0)