Matches a c-sharp style format specifier in a string "{Name-0,5:n}" with some additional changes. Used with StringUtils.Transform() you can provide your own String.Format(). The groups returned will be the following: "field" - An identifier may contain any alpha-numeric or one of these special characters: ('_', '-', or '.') "suffix" - Everything after the identifer and before the closing brace '}' "width" - The width part of the format is a number after a ',' and before ':' "format" - Everything after the the ':' and before the closing '}', note: escapes }} are not supported.
Syntax
Visual Basic (Declaration) | |
---|
Public Shared ReadOnly FormatNameSpecifier As Regex |
C# | |
---|
public static readonly Regex FormatNameSpecifier |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also