Skip to content

Commit

Permalink
Update regular-expressions.md (#12593)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron Petrusha committed May 31, 2019
1 parent 9e2c118 commit 4f4a43d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/standard/base-types/regular-expressions.md
Expand Up @@ -91,7 +91,7 @@ Regular expressions provide a powerful, flexible, and efficient method for proce

|||
|-|-|
|`\$`|Look for a single occurrence of the dollar symbol ($) in the input string. The regular expression pattern string includes a backslash to indicate that the dollar symbol is to be interpreted literally rather than as a regular expression anchor. (The $ symbol alone would indicate that the regular expression engine should try to begin its match at the end of a string.) To ensure that the current culture's currency symbol is not misinterpreted as a regular expression symbol, the example calls the <xref:System.Text.RegularExpressions.Regex.Escape%2A> method to escape the character.|
|`\$`|Look for a single occurrence of the dollar symbol (`$`) in the input string. The regular expression pattern string includes a backslash to indicate that the dollar symbol is to be interpreted literally rather than as a regular expression anchor. (The `$` symbol alone would indicate that the regular expression engine should try to begin its match at the end of a string.) To ensure that the current culture's currency symbol is not misinterpreted as a regular expression symbol, the example calls the <xref:System.Text.RegularExpressions.Regex.Escape%2A?displayProperty=nameWithType> method to escape the character.|
|`\s*`|Look for zero or more occurrences of a white-space character.|
|`[-+]?`|Look for zero or one occurrence of either a positive sign or a negative sign.|
|`([0-9]{0,3}(,[0-9]{3})*(\.[0-9]+)?)`|The outer parentheses around this expression define it as a capturing group or a subexpression. If a match is found, information about this part of the matching string can be retrieved from the second <xref:System.Text.RegularExpressions.Group> object in the <xref:System.Text.RegularExpressions.GroupCollection> object returned by the <xref:System.Text.RegularExpressions.Match.Groups%2A?displayProperty=nameWithType> property. (The first element in the collection represents the entire match.)|
Expand Down

0 comments on commit 4f4a43d

Please sign in to comment.